diff --git a/docs/content/2.components/alert.md b/docs/content/2.components/alert.md index 3018831939..406ee11dca 100644 --- a/docs/content/2.components/alert.md +++ b/docs/content/2.components/alert.md @@ -175,6 +175,12 @@ Use the `#avatar` slot to customize the displayable avatar. :component-example{component="alert-example-avatar"} +### `actions` :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} + +Use the `#actions` slot to add custom user interaction elements. + +:component-example{component="alert-example-actions"} + ## Props :component-props diff --git a/src/runtime/components/elements/Alert.vue b/src/runtime/components/elements/Alert.vue index 2ba3b71c73..b0af93ca65 100644 --- a/src/runtime/components/elements/Alert.vue +++ b/src/runtime/components/elements/Alert.vue @@ -20,13 +20,17 @@
-