daniel-norris / neu_ui

Prototype and build projects faster using Neu UI - an open source React component library designed to neumorphic style. Built using React, Styled Components, Jest and Storybook.
https://ui-neu.netlify.app/
MIT License
24 stars 31 forks source link

New Alert Components for the library #116

Open petercr opened 3 years ago

petercr commented 3 years ago

Hi 👋 not sure if you remember me, but I was working on issue #22 back in Hacktoberfest 🎃 Due to some family reasons... it got pushed back a bit 😄 And then I forgot to finish up what I had done 😅

But here it/they are the <Alert /> components 🎉

There are 4 types:

The rest of the details for the components (like props) can be found in ./src/components/alerts/Alert.stories.mdx.

I tried looking through the example story MDX code to see how you wanted it done, but I wasn't sure since I haven't used Storybook that much.

I ended up just using they style/syntax that the Storybook docs say to use for MDX. If it doesn't fit the project's style then you can totally change it 👍

Also, I didn't get to write the tests for the component yet, but I just wanted to push up what I had already done in case I didn't get around to the testing for a while.

Thanks,

Pete