-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14521 from TylerAPfledderer/fix/ButtonTwoLines-sp…
…lit-renders fix(ButtonTwoLines): split rendering of button or link
- Loading branch information
Showing
7 changed files
with
159 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export { default as Button, type ButtonProps, checkIsSecondary } from "./Button" | ||
export { default as ButtonLink, type ButtonLinkProps } from "./ButtonLink" | ||
export { default as ButtonTwoLines } from "./ButtonTwoLines" | ||
export { default as IconButton } from "./IconButton" |
35 changes: 35 additions & 0 deletions
35
src/components/ui/__stories__/ButtonLinkTwoLines.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { BiCircle } from "react-icons/bi" | ||
import type { Meta, StoryObj } from "@storybook/react" | ||
|
||
import { ButtonLinkTwoLines as ButtonLinkTwoLinesComponent } from "../buttons/ButtonTwoLines" | ||
import { Stack } from "../flex" | ||
|
||
const meta = { | ||
title: "Atoms / Form / Buttons / ButtonTwoLines", | ||
component: ButtonLinkTwoLinesComponent, | ||
} satisfies Meta<typeof ButtonLinkTwoLinesComponent> | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const ButtonLinkTwoLines: Story = { | ||
args: { | ||
icon: BiCircle, | ||
mainText: "Main Text", | ||
helperText: "Helper Text", | ||
className: "w-[300px]", | ||
href: "#", | ||
}, | ||
render: (args) => ( | ||
<Stack className="gap-8"> | ||
<ButtonLinkTwoLinesComponent {...args} /> | ||
<ButtonLinkTwoLinesComponent | ||
{...args} | ||
iconAlignment="end" | ||
size="sm" | ||
reverseTextOrder | ||
/> | ||
</Stack> | ||
), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.