--- title: Alert sidebar_label: Alert --- import { StoryWithControls } from '../../../src/components/StorybookWrapper'; import { Alert } from '@apache-superset/core/ui'; # Alert Alert component for displaying important messages to users. Wraps Ant Design Alert with sensible defaults and improved accessibility. ## Live Example ## Try It Edit the code below to experiment with the component: ```tsx live function Demo() { return ( ); } ``` ## Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `closable` | `boolean` | `true` | Whether the Alert can be closed with a close button. | | `type` | `string` | `"info"` | Type of the alert (e.g., info, error, warning, success). | | `message` | `string` | `"This is a sample alert message."` | Message | | `description` | `string` | `"Sample description for additional context."` | Description | | `showIcon` | `boolean` | `true` | Whether to display an icon in the Alert. | ## Usage in Extensions This component is available in the `@apache-superset/core/ui` package, which is automatically available to Superset extensions. ```tsx import { Alert } from '@apache-superset/core/ui'; function MyExtension() { return ( ); } ``` ## Source Links - [Story file](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-core/src/ui/components/Alert/Alert.stories.tsx) - [Component source](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-core/src/ui/components/Alert/index.tsx) --- *This page was auto-generated from the component's Storybook story.*