06 24 2019 dark mode hook2019 06 09 graphql and gatsby2019 06 13 graphql schema definition 101About linkAdd BlogCommit blockCommit block listGridGrid2Header linksHeader logoHomeIndexMy ProfileSidebarTable notesselect-dropbox-root-foldersodebrrr
Components
Flex
General
Layouts
Projects
blogs
Here is an alert component ive written.
Here are its props
Here is an example of using it.
Your Alert Message
My Message with no type and custom icon
Contextual
Warning
<Alert kind='warning'>A warning alert</Alert>
Danger with custom icon
<Alert icon={props=>(<GitBranch {...props} size={25}/>)} kind='danger'>Danger will robinson with custom icon</Alert>
Error
<Alert kind='error'>An error alert</Alert>
Success
<Alert kind='success' dismissable>A successful alert</Alert>