Alert
Last updated
import { Alert } from 'components/lib';
function Component({ ...props }){
return (
<Alert
title="Success!"
description="Your operation was successful."
variant="success"
button={{ text: 'Okay', action: () => alert('You clicked me') }}
/>
)
);import { Alert } from 'components/lib';
function Example({ ...props }){
return (
<div>
<Alert
title='Information'
description='This is an info alert.'
variant='info'
/>
<Alert
title='Success'
description='This is a success alert.'
variant='success'
/>
<Alert
title='Warning'
description='This is a warning alert.'
variant='warning'
/>
<Alert
title='Error'
description='This is an error alert.'
variant='error'
/>
</div>
)
);
<BlankSlateMessage
title='No items found'
text='Would you like to create one?'
buttonText='Create Item'
action={ this.createItem }
marginLeft='2em'
/>