|
1
|
{ |
|
2
|
"description": "This component is based on the [Radix UI Tabs](https://radix-ui.com/primitives/docs/components/tabs) primitves", |
|
3
|
"methods": [], |
|
4
|
"displayName": "Tabs", |
|
5
|
"props": { |
|
6
|
"activationMode": { |
|
7
|
"description": "Whether a tab is activated automatically or manually.", |
|
8
|
"required": false, |
|
9
|
"tsType": { |
|
10
|
"name": "union", |
|
11
|
"raw": "\"manual\" \\| \"automatic\"", |
|
12
|
"elements": [ |
|
13
|
{ |
|
14
|
"name": "literal", |
|
15
|
"value": "\"manual\"" |
|
16
|
}, |
|
17
|
{ |
|
18
|
"name": "literal", |
|
19
|
"value": "\"automatic\"" |
|
20
|
} |
|
21
|
] |
|
22
|
} |
|
23
|
}, |
|
24
|
"defaultValue": { |
|
25
|
"description": "The value of the tab to select by default, if uncontrolled", |
|
26
|
"required": false, |
|
27
|
"tsType": { |
|
28
|
"name": "string" |
|
29
|
} |
|
30
|
}, |
|
31
|
"dir": { |
|
32
|
"description": "The direction of navigation between toolbar items.", |
|
33
|
"required": false, |
|
34
|
"tsType": { |
|
35
|
"name": "Direction", |
|
36
|
"elements": [], |
|
37
|
"raw": "Direction" |
|
38
|
} |
|
39
|
}, |
|
40
|
"onValueChange": { |
|
41
|
"description": "A function called when a new tab is selected", |
|
42
|
"required": false, |
|
43
|
"tsType": { |
|
44
|
"name": "signature", |
|
45
|
"type": "function", |
|
46
|
"raw": "(value: string) => void", |
|
47
|
"signature": { |
|
48
|
"arguments": [ |
|
49
|
{ |
|
50
|
"name": "value", |
|
51
|
"type": { |
|
52
|
"name": "string" |
|
53
|
}, |
|
54
|
"rest": false |
|
55
|
} |
|
56
|
], |
|
57
|
"return": { |
|
58
|
"name": "void" |
|
59
|
} |
|
60
|
} |
|
61
|
} |
|
62
|
}, |
|
63
|
"orientation": { |
|
64
|
"description": "The orientation the tabs are layed out.\nMainly so arrow navigation is done accordingly (left & right vs. up & down)", |
|
65
|
"required": false, |
|
66
|
"tsType": { |
|
67
|
"name": "union", |
|
68
|
"raw": "\"horizontal\" \\| \"vertical\"", |
|
69
|
"elements": [ |
|
70
|
{ |
|
71
|
"name": "literal", |
|
72
|
"value": "\"horizontal\"" |
|
73
|
}, |
|
74
|
{ |
|
75
|
"name": "literal", |
|
76
|
"value": "\"vertical\"" |
|
77
|
} |
|
78
|
] |
|
79
|
} |
|
80
|
}, |
|
81
|
"value": { |
|
82
|
"description": "The value for the selected tab, if controlled", |
|
83
|
"required": false, |
|
84
|
"tsType": { |
|
85
|
"name": "string" |
|
86
|
} |
|
87
|
} |
|
88
|
} |
|
89
|
} |