Alert
import
import { Alert, AlertIcon, AlertTitle, AlertDescription } from '@bone-ui/alert'
Basic
Loading...
<Alert>A default alert</Alert>
LIVE DEMO
Types
Loading...
<Box spaceY3><Alert type="info">A info alert</Alert><Alert type="warning">An warning alert</Alert><Alert type="success">An success alert</Alert><Alert type="error">An error alert</Alert></Box>
LIVE DEMO
With Close Button
Loading...
<Box spaceY3><Alert type="info">A info alert <CloseButton size={20} absolute top-6 right-6 /></Alert><Alert type="warning">An warning alert <CloseButton absolute top-6 right-6 /></Alert></Box>
LIVE DEMO
With Icon
Loading...
<Box spaceY3><Alert><AlertIcon /> A default alert</Alert><Alert type="warning"><AlertIcon></AlertIcon> A default alert</Alert><Alert type="error"><AlertIcon />A default alert</Alert></Box>
LIVE DEMO
Title and Description
Loading...
<Box spaceY3><Alert type="info"><AlertIcon /><Box><AlertTitle>Info</AlertTitle><AlertDescription>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda, quia temporibus evenieta libero incidunt suscipit laborum, rerum accusantium modi quidem, ipsam illum quis sedvoluptatum quae eum fugit earum.</AlertDescription></Box></Alert><Alert type="success" column toCenterX textCenter><AlertIcon square-48 /><AlertTitle textLG>Success</AlertTitle><AlertDescription>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda, quia temporibus eveniet alibero incidunt suscipit laborum, rerum accusantium modi quidem, ipsam illum quis sedvoluptatum quae eum fugit earum.</AlertDescription></Alert></Box>
LIVE DEMO
Outline
Loading...
<Box spaceY3><Alert type="info" variant="outline">A info alert</Alert><Alert type="warning" variant="outline">An warning alert</Alert><Alert type="success" variant="outline">An success alert</Alert><Alert type="error" variant="outline">An error alert</Alert></Box>
LIVE DEMO