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
/>

Sizes

<Alert
    className='sm' // 'sm' | 'lg' | undefined
	...
/>

Outline

<Alert
    className='info outline'
	...
/>

Solid

<Alert
    className='info solid'
	...
/>

Dismissible

const [error, setError] = useState('Page could not be found!')
                    
{error && (
    <Alert
        className='error'
        status='404'
        message={error}
        onClick={() => setError('')}
    />
)}

RTL