From 30d08a956bd55fc49bb958ab239bea394c59cf92 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Thu, 25 May 2023 15:41:07 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(react)=20add=20fullWidth=20props=20to?= =?UTF-8?q?=20Button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can be useful in many situations. --- .changeset/nice-garlics-dance.md | 5 +++ .../react/src/components/Button/index.mdx | 11 +++++++ .../react/src/components/Button/index.scss | 5 +++ .../src/components/Button/index.stories.tsx | 32 +++++++++++++++++++ .../react/src/components/Button/index.tsx | 5 +++ .../Forms/Examples/index.stories.tsx | 9 ++++++ 6 files changed, 67 insertions(+) create mode 100644 .changeset/nice-garlics-dance.md create mode 100644 packages/react/src/components/Forms/Examples/index.stories.tsx diff --git a/.changeset/nice-garlics-dance.md b/.changeset/nice-garlics-dance.md new file mode 100644 index 0000000..1ce19e3 --- /dev/null +++ b/.changeset/nice-garlics-dance.md @@ -0,0 +1,5 @@ +--- +"@openfun/cunningham-react": minor +--- + +add fullWidth props to Button diff --git a/packages/react/src/components/Button/index.mdx b/packages/react/src/components/Button/index.mdx index e0fb15e..ab94249 100644 --- a/packages/react/src/components/Button/index.mdx +++ b/packages/react/src/components/Button/index.mdx @@ -52,6 +52,17 @@ The button can be disabled. The disabled button will render the same no matter w +## Full width + +The button can be set to full width. You can use the `fullWidth` prop to do so. + + + + + + + + ## Props You can use all the props of the native html `