Skip to content

New Alert Components for the library #116

Open
petercr wants to merge 13 commits intodaniel-norris:masterfrom
petercr:master
Open

New Alert Components for the library #116
petercr wants to merge 13 commits intodaniel-norris:masterfrom
petercr:master

Conversation

@petercr
Copy link
Contributor

@petercr petercr commented Jan 10, 2021

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:

  • Alert (default)
  • Warning
  • Info
  • Success

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant