Skip to content

Commit

Permalink
docs(Icon): update optical size story
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Sep 3, 2024
1 parent 38f1162 commit d478a4e
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,17 @@ export const Customisation: Story = {
}

export const OpticalSize: Story = {
render: ({ className, ...args }) => (
<Icon {...args} name="star" className={`text-heading-1 ${className}`} />
),
render: args => <Icon {...args} name="star" />,
parameters: { controls: { include: "className" } },
args: { className: "[--icon-optical-size:48]" },
args: { className: "text-[48px] [--icon-optical-size:48]" },
argTypes: {
className: {
control: { type: "radio" },
options: [
"[--icon-optical-size:20]",
"[--icon-optical-size:24]",
"[--icon-optical-size:40]",
"[--icon-optical-size:48]",
"text-[20px] [--icon-optical-size:20]",
"text-[24px] [--icon-optical-size:24]",
"text-[40px] [--icon-optical-size:40]",
"text-[48px] [--icon-optical-size:48]",
],
},
},
Expand Down

0 comments on commit d478a4e

Please sign in to comment.