docs(alert): update

This commit is contained in:
Benjamin Canac
2024-07-18 15:35:50 +02:00
parent c824f300c3
commit b194c5e49a

View File

@@ -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
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.
::
### 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
### Props