Skip to content

Commit

Permalink
feat: Add new alert types (#72)
Browse files Browse the repository at this point in the history
* add new alert types

* Update alert.md

* Update alert.md
  • Loading branch information
Ast3risk-ops authored Dec 12, 2024
1 parent 13a31aa commit 2cc8250
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/content/Alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const {
const typeTwClass = {
default: '',
info: 'border-sky-600 text-sky-600 [&>svg]:text-sky-600',
note: 'border-blue-700 text-blue-700 [&>svg]:text-blue-700',
example: 'border-violet-600 text-violet-600 [&>svg]:text-violet-600',
warning: 'border-amber-600 text-amber-600 [&>svg]:text-amber-600',
success: 'border-green-600 text-green-600 [&>svg]:text-green-600',
danger: 'border-red-600 text-red-600 [&>svg]:text-red-600',
Expand Down
8 changes: 8 additions & 0 deletions content/2.components/2.docs/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ badges:
An **info** alert with `code` and a [link](/).
::

::alert{type="note" icon="lucide:pencil"}
A **note** alert with `code` and a [link](/).
::

::alert{type="success" icon="lucide:lightbulb"}
A **success** alert with `code` and a [link](/).
::

::alert{type="example" icon="lucide:test-tube"}
An **example** alert with `code` and a [link](/).
::

::alert{type="warning" icon="lucide:triangle-alert"}
A **warning** alert with `code` and a [link](/).
::
Expand Down

0 comments on commit 2cc8250

Please sign in to comment.