From c40dec39f972a4242acc97fd40c6e25e212d710b Mon Sep 17 00:00:00 2001 From: Arne Molland Date: Tue, 10 Aug 2021 16:40:59 +0200 Subject: [PATCH] Add IconButton component --- ...Button.stories.mdx => Buttons.stories.mdx} | 25 +++++++- package.json | 2 +- src/lib/components/buttons/Button/Button.tsx | 4 +- .../buttons/IconButton/IconButton.styles.tsx | 60 +++++++++++++++++++ .../buttons/IconButton/IconButton.tsx | 40 +++++++++++++ .../components/buttons/IconButton/index.tsx | 8 +-- .../components/buttons/IconButton/styles.tsx | 36 ----------- src/lib/components/buttons/index.ts | 2 - 8 files changed, 128 insertions(+), 49 deletions(-) rename docs/buttons/{Button.stories.mdx => Buttons.stories.mdx} (84%) create mode 100644 src/lib/components/buttons/IconButton/IconButton.styles.tsx create mode 100644 src/lib/components/buttons/IconButton/IconButton.tsx delete mode 100644 src/lib/components/buttons/IconButton/styles.tsx diff --git a/docs/buttons/Button.stories.mdx b/docs/buttons/Buttons.stories.mdx similarity index 84% rename from docs/buttons/Button.stories.mdx rename to docs/buttons/Buttons.stories.mdx index 0d87d5f3..fb8d9ae6 100644 --- a/docs/buttons/Button.stories.mdx +++ b/docs/buttons/Buttons.stories.mdx @@ -1,4 +1,4 @@ -import { Button, ButtonProps } from '../../src' +import { Button, ButtonProps, IconButton, IconButtonProps } from '../../src' import { Canvas, Meta, ArgsTable, Story } from '@storybook/addon-docs' @@ -87,3 +87,26 @@ Buttons allow users to take actions and make choices. They are used for actions