Skip to main content

Alert

Alert component displays a short important message to the user and adheres to WAI-ARIA Alert pattern.

Core Features​

  • Out of the box Accessible

Installation​

npm i @dorai-ui/alert

or

yarn add @dorai-ui/alert

Basic Example​

API​

Components Composed​

import { Alert } from '@dorai-ui/alert'

const AlertComp = () => <Alert />

Alert​

The main Alert component.

Props  Default   Description
as'div'This grants the ability to change the element this component should render as