bestax-mcp 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -0
- package/data/catalog.json +1869 -0
- package/data/components/Autocomplete.json +604 -0
- package/data/components/Avatar.json +220 -0
- package/data/components/Avatars.json +294 -0
- package/data/components/Badge.json +261 -0
- package/data/components/Block.json +105 -0
- package/data/components/Box.json +157 -0
- package/data/components/Breadcrumb.json +155 -0
- package/data/components/Button.json +599 -0
- package/data/components/Buttons.json +533 -0
- package/data/components/Card.json +506 -0
- package/data/components/Carousel.json +512 -0
- package/data/components/Cell.json +154 -0
- package/data/components/Checkbox.json +176 -0
- package/data/components/Checkboxes.json +240 -0
- package/data/components/Code.json +128 -0
- package/data/components/Collapse.json +218 -0
- package/data/components/Column.json +284 -0
- package/data/components/Columns.json +542 -0
- package/data/components/ConfigProvider.json +16 -0
- package/data/components/Container.json +149 -0
- package/data/components/Content.json +228 -0
- package/data/components/Control.json +484 -0
- package/data/components/DateInput.json +872 -0
- package/data/components/DateTimeInput.json +952 -0
- package/data/components/Delete.json +153 -0
- package/data/components/Dialog.json +285 -0
- package/data/components/Divider.json +68 -0
- package/data/components/Dropdown.json +353 -0
- package/data/components/Emphasis.json +99 -0
- package/data/components/Field.json +539 -0
- package/data/components/Figure.json +143 -0
- package/data/components/File.json +403 -0
- package/data/components/Footer.json +109 -0
- package/data/components/Grid.json +357 -0
- package/data/components/Hero.json +340 -0
- package/data/components/Icon.json +232 -0
- package/data/components/IconText.json +307 -0
- package/data/components/Image.json +166 -0
- package/data/components/Input.json +583 -0
- package/data/components/Level.json +332 -0
- package/data/components/Link.json +154 -0
- package/data/components/LinkButton.json +247 -0
- package/data/components/ListItem.json +101 -0
- package/data/components/Loading.json +323 -0
- package/data/components/Media.json +345 -0
- package/data/components/Menu.json +317 -0
- package/data/components/Message.json +303 -0
- package/data/components/Modal.json +444 -0
- package/data/components/Navbar.json +996 -0
- package/data/components/Notification.json +165 -0
- package/data/components/Numberinput.json +364 -0
- package/data/components/OrderedList.json +189 -0
- package/data/components/Pagination.json +619 -0
- package/data/components/Panel.json +582 -0
- package/data/components/Paragraph.json +107 -0
- package/data/components/Pre.json +114 -0
- package/data/components/Progress.json +137 -0
- package/data/components/Radio.json +164 -0
- package/data/components/Radios.json +240 -0
- package/data/components/Rate.json +466 -0
- package/data/components/Reveal.json +177 -0
- package/data/components/Section.json +123 -0
- package/data/components/Select.json +526 -0
- package/data/components/Sidebar.json +488 -0
- package/data/components/Skeleton.json +162 -0
- package/data/components/Slider.json +534 -0
- package/data/components/Span.json +100 -0
- package/data/components/Steps.json +452 -0
- package/data/components/Strong.json +105 -0
- package/data/components/SubTitle.json +233 -0
- package/data/components/Switch.json +291 -0
- package/data/components/Table.json +490 -0
- package/data/components/Tabs.json +592 -0
- package/data/components/Tag.json +197 -0
- package/data/components/Taginput.json +587 -0
- package/data/components/Tags.json +181 -0
- package/data/components/TextArea.json +483 -0
- package/data/components/Theme.json +65 -0
- package/data/components/TimeInput.json +906 -0
- package/data/components/Title.json +240 -0
- package/data/components/Toast.json +308 -0
- package/data/components/Tooltip.json +212 -0
- package/data/components/UnorderedList.json +149 -0
- package/data/components/Valid value constants.json +16 -0
- package/data/components/classNames.json +65 -0
- package/data/components/useBulmaClasses.json +169 -0
- package/data/components/usePrefixedClassNames.json +25 -0
- package/data/skills/bestax-custom-component/SKILL.md +196 -0
- package/data/skills/bestax-custom-component/examples/stat-card.tsx +105 -0
- package/data/skills/bestax-custom-component/references/api.md +90 -0
- package/data/skills/bestax-custom-component/references/component-catalog.md +149 -0
- package/data/skills/bestax-custom-component/references/library-contributor.md +395 -0
- package/data/skills/bestax-custom-component/references/patterns.md +136 -0
- package/data/skills/bestax-form/SKILL.md +254 -0
- package/data/skills/bestax-form/references/api.md +103 -0
- package/data/skills/bestax-form/references/patterns.md +210 -0
- package/data/skills/bestax-icons/SKILL.md +80 -0
- package/data/skills/bestax-icons/examples/icon-usage.tsx +80 -0
- package/data/skills/bestax-icons/references/icon-libraries.md +131 -0
- package/data/skills/bestax-layout-scaffold/SKILL.md +196 -0
- package/data/skills/bestax-layout-scaffold/examples/app-shell.tsx +86 -0
- package/data/skills/bestax-layout-scaffold/examples/card-grid.tsx +106 -0
- package/data/skills/bestax-layout-scaffold/examples/centered.tsx +56 -0
- package/data/skills/bestax-layout-scaffold/examples/content-page.tsx +90 -0
- package/data/skills/bestax-layout-scaffold/examples/landing.tsx +122 -0
- package/data/skills/bestax-layout-scaffold/references/archetypes.md +246 -0
- package/data/skills/bestax-layout-scaffold/references/layout-components.md +269 -0
- package/data/skills/bestax-migrate/SKILL.md +78 -0
- package/data/skills/bestax-migrate/references/component-map.md +91 -0
- package/data/skills/bestax-migrate/references/css-migration.md +100 -0
- package/data/skills/bestax-migrate/references/prop-map.md +48 -0
- package/data/skills/bestax-migrate/references/unmappables.md +124 -0
- package/data/skills/bestax-optimize/SKILL.md +131 -0
- package/data/skills/bestax-optimize/references/modular-build.md +173 -0
- package/data/skills/bestax-theming/SKILL.md +117 -0
- package/data/skills/bestax-theming/examples/dark-mode.tsx +38 -0
- package/data/skills/bestax-theming/examples/theme-config.tsx +60 -0
- package/data/skills/bestax-theming/references/css-variables.md +466 -0
- package/data/skills/bestax-theming/references/themeable-components.md +119 -0
- package/data/skills.json +148 -0
- package/dist/data.d.ts +131 -0
- package/dist/data.d.ts.map +1 -0
- package/dist/data.js +111 -0
- package/dist/format.d.ts +37 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/format.js +178 -0
- package/dist/helper-props.d.ts +57 -0
- package/dist/helper-props.d.ts.map +1 -0
- package/dist/helper-props.js +249 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/search.d.ts +32 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +194 -0
- package/dist/server.d.ts +28 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +616 -0
- package/dist/version.d.ts +29 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +147 -0
- package/package.json +70 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Buttons",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"category": "elements",
|
|
5
|
+
"slug": "elements/buttons",
|
|
6
|
+
"docsUrl": "https://bestax.io/docs/api/elements/buttons",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Default Button Group",
|
|
10
|
+
"code": "<Buttons>\n <Button color=\"primary\">Save</Button>\n <Button color=\"info\">Edit</Button>\n <Button color=\"danger\">Delete</Button>\n</Buttons>"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"title": "All Colors Group",
|
|
14
|
+
"code": "<Buttons>\n {['primary', 'link', 'info', 'success', 'warning', 'danger'].map(color => (\n <Button key={color} color={color}>\n {color.charAt(0).toUpperCase() + color.slice(1)}\n </Button>\n ))}\n</Buttons>"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"title": "All Sizes Group",
|
|
18
|
+
"code": "<Buttons>\n {['small', 'normal', 'medium', 'large'].map(size => (\n <Button key={size} size={size}>\n {size.charAt(0).toUpperCase() + size.slice(1)}\n </Button>\n ))}\n</Buttons>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Add-ons (No Spacing Between Buttons)",
|
|
22
|
+
"code": "<Buttons hasAddons>\n <Button color=\"primary\">Left</Button>\n <Button color=\"primary\">Center</Button>\n <Button color=\"primary\">Right</Button>\n</Buttons>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"title": "Centered Group",
|
|
26
|
+
"code": "<Buttons isCentered>\n <Button color=\"info\">One</Button>\n <Button color=\"info\">Two</Button>\n</Buttons>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "Right-Aligned Group",
|
|
30
|
+
"code": "<Buttons isRight>\n <Button color=\"success\">Accept</Button>\n <Button color=\"danger\">Reject</Button>\n</Buttons>"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Compound (dot-notation) usage",
|
|
34
|
+
"code": "<Buttons>\n <Buttons.Button color=\"primary\">Save</Buttons.Button>\n <Buttons.Button>Cancel</Buttons.Button>\n <Buttons.LinkButton>Learn more</Buttons.LinkButton>\n</Buttons>"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"accessibility": "- Grouping buttons in a `<div class=\"buttons\">` has no negative impact on accessibility.\n- Ensure each `Button` has a clear label (text or `aria-label`).\n- If grouping radio or toggle buttons, consider `aria-pressed` or `aria-checked` for stateful controls.\n\n:::tip\nYou can use all Bulma helper props (spacing, color, alignment) with `Buttons` for even more control.\n:::",
|
|
38
|
+
"related": ["Button", "useBulmaClasses"],
|
|
39
|
+
"storybook": "https://bestax.io/storybook/?path=/story/elements-button--default",
|
|
40
|
+
"summary": "The `Buttons` component lets you group multiple `Button` elements together with Bulma's spacing, alignment, and add-on features.",
|
|
41
|
+
"import": "import { Buttons } from '@allxsmith/bestax-bulma';",
|
|
42
|
+
"sourceFile": "bulma-ui/src/elements/Buttons.tsx",
|
|
43
|
+
"rootClass": "buttons",
|
|
44
|
+
"parts": [
|
|
45
|
+
{
|
|
46
|
+
"path": "Buttons",
|
|
47
|
+
"summary": "The `Buttons` component lets you group multiple `Button` elements together with Bulma's spacing, alignment, and add-on features.",
|
|
48
|
+
"component": null,
|
|
49
|
+
"props": [
|
|
50
|
+
{
|
|
51
|
+
"name": "className",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"default": null,
|
|
54
|
+
"description": "Additional CSS classes to apply.",
|
|
55
|
+
"required": false,
|
|
56
|
+
"inherited": false,
|
|
57
|
+
"deprecated": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "textColor",
|
|
61
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
62
|
+
"default": null,
|
|
63
|
+
"description": "Text color helper for the button group.",
|
|
64
|
+
"required": false,
|
|
65
|
+
"inherited": false,
|
|
66
|
+
"deprecated": false,
|
|
67
|
+
"valuesRef": "helpers/valid-values"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "color",
|
|
71
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
|
|
72
|
+
"default": null,
|
|
73
|
+
"description": "Text color alias: renders `has-text-<color>`, exactly like `textColor`. Not a filled variant (no `.buttons.is-<color>` CSS exists; color the individual `Button`s instead). Prefer `textColor`, which takes precedence when both are set; use `bgColor` for a colored surface.",
|
|
74
|
+
"required": false,
|
|
75
|
+
"inherited": false,
|
|
76
|
+
"deprecated": false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "bgColor",
|
|
80
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
81
|
+
"default": null,
|
|
82
|
+
"description": "Background color helper for the button group.",
|
|
83
|
+
"required": false,
|
|
84
|
+
"inherited": false,
|
|
85
|
+
"deprecated": false,
|
|
86
|
+
"valuesRef": "helpers/valid-values"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "isCentered",
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"default": "false",
|
|
92
|
+
"description": "Center the group of buttons.",
|
|
93
|
+
"required": false,
|
|
94
|
+
"inherited": false,
|
|
95
|
+
"deprecated": false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "isRight",
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"default": "false",
|
|
101
|
+
"description": "Align the group of buttons to the right.",
|
|
102
|
+
"required": false,
|
|
103
|
+
"inherited": false,
|
|
104
|
+
"deprecated": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "hasAddons",
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"default": "false",
|
|
110
|
+
"description": "Group buttons together as addons (removes spacing between them).",
|
|
111
|
+
"required": false,
|
|
112
|
+
"inherited": false,
|
|
113
|
+
"deprecated": false
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "children",
|
|
117
|
+
"type": "React.ReactNode",
|
|
118
|
+
"default": null,
|
|
119
|
+
"description": "The button elements to render inside the group.",
|
|
120
|
+
"required": false,
|
|
121
|
+
"inherited": false,
|
|
122
|
+
"deprecated": false
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"extraProps": [],
|
|
126
|
+
"catchAll": "All standard <div> attributes and Bulma helper props",
|
|
127
|
+
"types": []
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"path": "Buttons.Button",
|
|
131
|
+
"summary": "The `Button` component provides a flexible and highly customizable button for your Bulma React UI.",
|
|
132
|
+
"component": "Button",
|
|
133
|
+
"props": [
|
|
134
|
+
{
|
|
135
|
+
"name": "color",
|
|
136
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'white' | 'light' | 'dark' | 'black' | 'text' | 'ghost'",
|
|
137
|
+
"default": null,
|
|
138
|
+
"description": "Bulma color variant for the button. `ghost` renders a link-like button; `text` renders a minimal text-only button.",
|
|
139
|
+
"required": false,
|
|
140
|
+
"inherited": false,
|
|
141
|
+
"deprecated": false
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "size",
|
|
145
|
+
"type": "'small' | 'normal' | 'medium' | 'large'",
|
|
146
|
+
"default": null,
|
|
147
|
+
"description": "Size of the button.",
|
|
148
|
+
"required": false,
|
|
149
|
+
"inherited": false,
|
|
150
|
+
"deprecated": false
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "isLight",
|
|
154
|
+
"type": "boolean",
|
|
155
|
+
"default": "false",
|
|
156
|
+
"description": "Applies a lighter color variant.",
|
|
157
|
+
"required": false,
|
|
158
|
+
"inherited": false,
|
|
159
|
+
"deprecated": false
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "isRounded",
|
|
163
|
+
"type": "boolean",
|
|
164
|
+
"default": "false",
|
|
165
|
+
"description": "Makes the button rounded.",
|
|
166
|
+
"required": false,
|
|
167
|
+
"inherited": false,
|
|
168
|
+
"deprecated": false
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "isLoading",
|
|
172
|
+
"type": "boolean",
|
|
173
|
+
"default": "false",
|
|
174
|
+
"description": "Displays a loading spinner.",
|
|
175
|
+
"required": false,
|
|
176
|
+
"inherited": false,
|
|
177
|
+
"deprecated": false
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "isStatic",
|
|
181
|
+
"type": "boolean",
|
|
182
|
+
"default": "false",
|
|
183
|
+
"description": "Makes the button non-interactive.",
|
|
184
|
+
"required": false,
|
|
185
|
+
"inherited": false,
|
|
186
|
+
"deprecated": false
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "isFullWidth",
|
|
190
|
+
"type": "boolean",
|
|
191
|
+
"default": "false",
|
|
192
|
+
"description": "Makes the button full-width.",
|
|
193
|
+
"required": false,
|
|
194
|
+
"inherited": false,
|
|
195
|
+
"deprecated": false
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "isOutlined",
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"default": "false",
|
|
201
|
+
"description": "Applies outlined styling (requires color).",
|
|
202
|
+
"required": false,
|
|
203
|
+
"inherited": false,
|
|
204
|
+
"deprecated": false
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "isInverted",
|
|
208
|
+
"type": "boolean",
|
|
209
|
+
"default": "false",
|
|
210
|
+
"description": "Applies inverted styling (requires color).",
|
|
211
|
+
"required": false,
|
|
212
|
+
"inherited": false,
|
|
213
|
+
"deprecated": false
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "isFocused",
|
|
217
|
+
"type": "boolean",
|
|
218
|
+
"default": "false",
|
|
219
|
+
"description": "Applies focused styling (visual only).",
|
|
220
|
+
"required": false,
|
|
221
|
+
"inherited": false,
|
|
222
|
+
"deprecated": false
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "isActive",
|
|
226
|
+
"type": "boolean",
|
|
227
|
+
"default": "false",
|
|
228
|
+
"description": "Applies active styling (visual only).",
|
|
229
|
+
"required": false,
|
|
230
|
+
"inherited": false,
|
|
231
|
+
"deprecated": false
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "isHovered",
|
|
235
|
+
"type": "boolean",
|
|
236
|
+
"default": "false",
|
|
237
|
+
"description": "Applies hovered styling (visual only).",
|
|
238
|
+
"required": false,
|
|
239
|
+
"inherited": false,
|
|
240
|
+
"deprecated": false
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "isDisabled",
|
|
244
|
+
"type": "boolean",
|
|
245
|
+
"default": "false",
|
|
246
|
+
"description": "Applies disabled styling.",
|
|
247
|
+
"required": false,
|
|
248
|
+
"inherited": false,
|
|
249
|
+
"deprecated": false
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "className",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"default": null,
|
|
255
|
+
"description": "Custom class name.",
|
|
256
|
+
"required": false,
|
|
257
|
+
"inherited": false,
|
|
258
|
+
"deprecated": false
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "textColor",
|
|
262
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
263
|
+
"default": null,
|
|
264
|
+
"description": "Text color helper.",
|
|
265
|
+
"required": false,
|
|
266
|
+
"inherited": false,
|
|
267
|
+
"deprecated": false,
|
|
268
|
+
"valuesRef": "helpers/valid-values"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "bgColor",
|
|
272
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
273
|
+
"default": null,
|
|
274
|
+
"description": "Background color helper.",
|
|
275
|
+
"required": false,
|
|
276
|
+
"inherited": false,
|
|
277
|
+
"deprecated": false,
|
|
278
|
+
"valuesRef": "helpers/valid-values"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "as",
|
|
282
|
+
"type": "React.ElementType",
|
|
283
|
+
"default": "'button'",
|
|
284
|
+
"description": "Render as a `<button>`, `<a>`, or a custom component (e.g. a router `Link`). Defaults to `'button'`; anything else (including `'a'`) uses anchor-style prop handling.",
|
|
285
|
+
"required": false,
|
|
286
|
+
"inherited": false,
|
|
287
|
+
"deprecated": false
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "href",
|
|
291
|
+
"type": "string",
|
|
292
|
+
"default": null,
|
|
293
|
+
"description": "Href value (if rendering as `<a>`).",
|
|
294
|
+
"required": false,
|
|
295
|
+
"inherited": false,
|
|
296
|
+
"deprecated": false
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "onClick",
|
|
300
|
+
"type": "React.MouseEventHandler<HTMLButtonElement> | React.MouseEventHandler<HTMLAnchorElement>",
|
|
301
|
+
"default": null,
|
|
302
|
+
"description": "Click event handler.",
|
|
303
|
+
"required": false,
|
|
304
|
+
"inherited": false,
|
|
305
|
+
"deprecated": false
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "target",
|
|
309
|
+
"type": "string",
|
|
310
|
+
"default": null,
|
|
311
|
+
"description": "Anchor tag target.",
|
|
312
|
+
"required": false,
|
|
313
|
+
"inherited": false,
|
|
314
|
+
"deprecated": false
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "rel",
|
|
318
|
+
"type": "string",
|
|
319
|
+
"default": null,
|
|
320
|
+
"description": "Anchor tag rel.",
|
|
321
|
+
"required": false,
|
|
322
|
+
"inherited": false,
|
|
323
|
+
"deprecated": false
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "children",
|
|
327
|
+
"type": "React.ReactNode",
|
|
328
|
+
"default": null,
|
|
329
|
+
"description": "Button content.",
|
|
330
|
+
"required": false,
|
|
331
|
+
"inherited": false,
|
|
332
|
+
"deprecated": false
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"extraProps": [],
|
|
336
|
+
"catchAll": "All standard <button> attributes and Bulma helper props",
|
|
337
|
+
"types": []
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"path": "Buttons.LinkButton",
|
|
341
|
+
"summary": "The `LinkButton` component renders a `<button>` that visually looks like text or a link.",
|
|
342
|
+
"component": "LinkButton",
|
|
343
|
+
"props": [
|
|
344
|
+
{
|
|
345
|
+
"name": "variant",
|
|
346
|
+
"type": "'text' | 'ghost' | 'underline'",
|
|
347
|
+
"default": "'text'",
|
|
348
|
+
"description": "Display mode. `text` has no underline and highlights its background on hover; `ghost` uses the default text color and underlines on hover; `underline` drops the button chrome entirely (transparent background and border) and underlines on hover or focus.",
|
|
349
|
+
"required": false,
|
|
350
|
+
"inherited": false,
|
|
351
|
+
"deprecated": false
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "color",
|
|
355
|
+
"type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'white' | 'light' | 'dark' | 'black'",
|
|
356
|
+
"default": null,
|
|
357
|
+
"description": "Text color override for the button.",
|
|
358
|
+
"required": false,
|
|
359
|
+
"inherited": false,
|
|
360
|
+
"deprecated": false
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "size",
|
|
364
|
+
"type": "'small' | 'normal' | 'medium' | 'large'",
|
|
365
|
+
"default": null,
|
|
366
|
+
"description": "Size of the button.",
|
|
367
|
+
"required": false,
|
|
368
|
+
"inherited": true,
|
|
369
|
+
"deprecated": false
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "isRounded",
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"default": "false",
|
|
375
|
+
"description": "Makes the button rounded.",
|
|
376
|
+
"required": false,
|
|
377
|
+
"inherited": true,
|
|
378
|
+
"deprecated": false
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "isLoading",
|
|
382
|
+
"type": "boolean",
|
|
383
|
+
"default": "false",
|
|
384
|
+
"description": "Displays a loading spinner.",
|
|
385
|
+
"required": false,
|
|
386
|
+
"inherited": true,
|
|
387
|
+
"deprecated": false
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "isStatic",
|
|
391
|
+
"type": "boolean",
|
|
392
|
+
"default": "false",
|
|
393
|
+
"description": "Makes the button non-interactive.",
|
|
394
|
+
"required": false,
|
|
395
|
+
"inherited": true,
|
|
396
|
+
"deprecated": false
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "isFullWidth",
|
|
400
|
+
"type": "boolean",
|
|
401
|
+
"default": "false",
|
|
402
|
+
"description": "Makes the button full-width.",
|
|
403
|
+
"required": false,
|
|
404
|
+
"inherited": true,
|
|
405
|
+
"deprecated": false
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "isFocused",
|
|
409
|
+
"type": "boolean",
|
|
410
|
+
"default": "false",
|
|
411
|
+
"description": "Applies focused styling (visual only).",
|
|
412
|
+
"required": false,
|
|
413
|
+
"inherited": true,
|
|
414
|
+
"deprecated": false
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "isActive",
|
|
418
|
+
"type": "boolean",
|
|
419
|
+
"default": "false",
|
|
420
|
+
"description": "Applies active styling (visual only).",
|
|
421
|
+
"required": false,
|
|
422
|
+
"inherited": true,
|
|
423
|
+
"deprecated": false
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "isHovered",
|
|
427
|
+
"type": "boolean",
|
|
428
|
+
"default": "false",
|
|
429
|
+
"description": "Applies hovered styling (visual only).",
|
|
430
|
+
"required": false,
|
|
431
|
+
"inherited": true,
|
|
432
|
+
"deprecated": false
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"name": "isDisabled",
|
|
436
|
+
"type": "boolean",
|
|
437
|
+
"default": "false",
|
|
438
|
+
"description": "Applies disabled styling.",
|
|
439
|
+
"required": false,
|
|
440
|
+
"inherited": true,
|
|
441
|
+
"deprecated": false
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "className",
|
|
445
|
+
"type": "string",
|
|
446
|
+
"default": null,
|
|
447
|
+
"description": "Custom class name.",
|
|
448
|
+
"required": false,
|
|
449
|
+
"inherited": true,
|
|
450
|
+
"deprecated": false
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "textColor",
|
|
454
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
455
|
+
"default": null,
|
|
456
|
+
"description": "Text color helper.",
|
|
457
|
+
"required": false,
|
|
458
|
+
"inherited": true,
|
|
459
|
+
"deprecated": false,
|
|
460
|
+
"valuesRef": "helpers/valid-values"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "bgColor",
|
|
464
|
+
"type": "Bulma color | 'inherit' | 'current'",
|
|
465
|
+
"default": null,
|
|
466
|
+
"description": "Background color helper.",
|
|
467
|
+
"required": false,
|
|
468
|
+
"inherited": true,
|
|
469
|
+
"deprecated": false,
|
|
470
|
+
"valuesRef": "helpers/valid-values"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "as",
|
|
474
|
+
"type": "React.ElementType",
|
|
475
|
+
"default": "'button'",
|
|
476
|
+
"description": "Render as a `<button>`, `<a>`, or a custom component (e.g. a router `Link`). Defaults to `'button'`; anything else (including `'a'`) uses anchor-style prop handling.",
|
|
477
|
+
"required": false,
|
|
478
|
+
"inherited": true,
|
|
479
|
+
"deprecated": false
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "href",
|
|
483
|
+
"type": "string",
|
|
484
|
+
"default": null,
|
|
485
|
+
"description": "Href value (if rendering as `<a>`).",
|
|
486
|
+
"required": false,
|
|
487
|
+
"inherited": true,
|
|
488
|
+
"deprecated": false
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "onClick",
|
|
492
|
+
"type": "React.MouseEventHandler<HTMLButtonElement> | React.MouseEventHandler<HTMLAnchorElement>",
|
|
493
|
+
"default": null,
|
|
494
|
+
"description": "Click event handler.",
|
|
495
|
+
"required": false,
|
|
496
|
+
"inherited": true,
|
|
497
|
+
"deprecated": false
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "target",
|
|
501
|
+
"type": "string",
|
|
502
|
+
"default": null,
|
|
503
|
+
"description": "Anchor tag target.",
|
|
504
|
+
"required": false,
|
|
505
|
+
"inherited": true,
|
|
506
|
+
"deprecated": false
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "rel",
|
|
510
|
+
"type": "string",
|
|
511
|
+
"default": null,
|
|
512
|
+
"description": "Anchor tag rel.",
|
|
513
|
+
"required": false,
|
|
514
|
+
"inherited": true,
|
|
515
|
+
"deprecated": false
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "children",
|
|
519
|
+
"type": "React.ReactNode",
|
|
520
|
+
"default": null,
|
|
521
|
+
"description": "Button content.",
|
|
522
|
+
"required": false,
|
|
523
|
+
"inherited": true,
|
|
524
|
+
"deprecated": false
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"extraProps": [],
|
|
528
|
+
"catchAll": "All standard <button> attributes and Bulma helper props",
|
|
529
|
+
"types": []
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"cssVars": []
|
|
533
|
+
}
|