Skip to content

Commit fa74d53

Browse files
committed
docs: add basic story for dropdown caret
1 parent 2ebe59e commit fa74d53

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import type { Meta, StoryObj } from "@storybook/react";
2+
3+
import { DropdownCaretDown as DropdownCaretDownComponent } from "./index.jsx";
4+
5+
const meta = {
6+
component: DropdownCaretDownComponent,
7+
argTypes: {
8+
width: {
9+
control: "text",
10+
description: "Width of the icon",
11+
table: {
12+
category: "Dimensions",
13+
defaultValue: { summary: "1em" },
14+
},
15+
},
16+
height: {
17+
control: "text",
18+
description: "Height of the icon",
19+
table: {
20+
category: "Dimensions",
21+
defaultValue: { summary: "1em" },
22+
},
23+
},
24+
className: {
25+
control: "text",
26+
description: "CSS class name",
27+
table: {
28+
category: "Styling",
29+
},
30+
},
31+
style: {
32+
control: "object",
33+
description: "Inline styles",
34+
table: {
35+
category: "Styling",
36+
},
37+
},
38+
},
39+
parameters: {
40+
docs: {
41+
description: {
42+
component:
43+
"A dropdown caret icon that points downward. It inherits the current text color and scales with font size using em units.",
44+
},
45+
},
46+
},
47+
tags: ["autodocs"],
48+
} satisfies Meta<typeof DropdownCaretDownComponent>;
49+
export default meta;
50+
51+
type Story = StoryObj<typeof DropdownCaretDownComponent>;
52+
53+
export const Default: Story = {};

0 commit comments

Comments
 (0)