mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 05:37:56 +01:00
docs(alert): update
This commit is contained in:
@@ -59,6 +59,25 @@ props:
|
|||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
### Style
|
||||||
|
|
||||||
|
Use the `color` and `variant` props to change the style of the Alert.
|
||||||
|
|
||||||
|
::component-code
|
||||||
|
---
|
||||||
|
ignore:
|
||||||
|
- title
|
||||||
|
- description
|
||||||
|
- icon
|
||||||
|
props:
|
||||||
|
color: gray
|
||||||
|
variant: outline
|
||||||
|
title: 'Heads up!'
|
||||||
|
description: 'You can change the primary color in your app config.'
|
||||||
|
icon: 'i-heroicons-command-line'
|
||||||
|
---
|
||||||
|
::
|
||||||
|
|
||||||
### Close
|
### Close
|
||||||
|
|
||||||
Use the `close` prop to display a [Button](/components/button) to dismiss the Alert.
|
Use the `close` prop to display a [Button](/components/button) to dismiss the Alert.
|
||||||
@@ -130,25 +149,6 @@ props:
|
|||||||
Actions will render differently when the description is not set. You can try to remove it.
|
Actions will render differently when the description is not set. You can try to remove it.
|
||||||
::
|
::
|
||||||
|
|
||||||
### Style
|
|
||||||
|
|
||||||
Use the `color` and `variant` props to change the style of the Alert.
|
|
||||||
|
|
||||||
::component-code
|
|
||||||
---
|
|
||||||
ignore:
|
|
||||||
- title
|
|
||||||
- description
|
|
||||||
- icon
|
|
||||||
props:
|
|
||||||
color: gray
|
|
||||||
variant: outline
|
|
||||||
title: 'Heads up!'
|
|
||||||
description: 'You can change the primary color in your app config.'
|
|
||||||
icon: 'i-heroicons-command-line'
|
|
||||||
---
|
|
||||||
::
|
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
### Props
|
### Props
|
||||||
|
|||||||
Reference in New Issue
Block a user