File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
packages/component-library/src/DropdownCaretDown Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
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 = { } ;
You can’t perform that action at this time.
0 commit comments