user-avatar

Kyle J. Roux

jstacoder

Developer Program Member

a python/javascript/php/linux guru ready to take on the world...

CasePeer
orange, CA, USA
https://jstacoder.github.io

Hi
Home

Jstacoders Profile
06 24 2019 dark mode hook2019 06 09 graphql and gatsby2019 06 13 graphql schema definition 101About linkAdd Blog
Blog
Commit blockCommit block list
Components
General
GridGrid2Header linksHeader logoHomeIndexMy Profile
Projects
AlertContextualClose button
SidebarTable notesselect-dropbox-root-foldersodebrrr

Here is an alert component ive written.

Here are its props

Here is an example of using it.

Your Alert Message

Try changing the code in the example below. Here are some more examples.

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