Alert
Explore Bramble UI's dynamic alert components for effective communication. Enhance user interaction with interactive alerts.
Usage
import {Alert} from '@/ui'
<Alert
className='info' // 'info' | 'success' | 'warning' | 'error' | 'danger'
status='info'
message='Some contextual message useful to the user.' // can be HTML content
/>
Info
Success
Warning
Error
Sizes
Small
Large
<Alert
className='sm' // 'sm' | 'lg' | undefined
...
/>
Outline
Info
<Alert
className='info outline'
...
/>
Solid
Info
Info
<Alert
className='info solid'
...
/>
Dismissible
404
const [error, setError] = useState('Page could not be found!')
{error && (
<Alert
className='error'
status='404'
message={error}
onClick={() => setError('')}
/>
)}
RTL
404