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.
Files changed (144) hide show
  1. package/README.md +90 -0
  2. package/data/catalog.json +1869 -0
  3. package/data/components/Autocomplete.json +604 -0
  4. package/data/components/Avatar.json +220 -0
  5. package/data/components/Avatars.json +294 -0
  6. package/data/components/Badge.json +261 -0
  7. package/data/components/Block.json +105 -0
  8. package/data/components/Box.json +157 -0
  9. package/data/components/Breadcrumb.json +155 -0
  10. package/data/components/Button.json +599 -0
  11. package/data/components/Buttons.json +533 -0
  12. package/data/components/Card.json +506 -0
  13. package/data/components/Carousel.json +512 -0
  14. package/data/components/Cell.json +154 -0
  15. package/data/components/Checkbox.json +176 -0
  16. package/data/components/Checkboxes.json +240 -0
  17. package/data/components/Code.json +128 -0
  18. package/data/components/Collapse.json +218 -0
  19. package/data/components/Column.json +284 -0
  20. package/data/components/Columns.json +542 -0
  21. package/data/components/ConfigProvider.json +16 -0
  22. package/data/components/Container.json +149 -0
  23. package/data/components/Content.json +228 -0
  24. package/data/components/Control.json +484 -0
  25. package/data/components/DateInput.json +872 -0
  26. package/data/components/DateTimeInput.json +952 -0
  27. package/data/components/Delete.json +153 -0
  28. package/data/components/Dialog.json +285 -0
  29. package/data/components/Divider.json +68 -0
  30. package/data/components/Dropdown.json +353 -0
  31. package/data/components/Emphasis.json +99 -0
  32. package/data/components/Field.json +539 -0
  33. package/data/components/Figure.json +143 -0
  34. package/data/components/File.json +403 -0
  35. package/data/components/Footer.json +109 -0
  36. package/data/components/Grid.json +357 -0
  37. package/data/components/Hero.json +340 -0
  38. package/data/components/Icon.json +232 -0
  39. package/data/components/IconText.json +307 -0
  40. package/data/components/Image.json +166 -0
  41. package/data/components/Input.json +583 -0
  42. package/data/components/Level.json +332 -0
  43. package/data/components/Link.json +154 -0
  44. package/data/components/LinkButton.json +247 -0
  45. package/data/components/ListItem.json +101 -0
  46. package/data/components/Loading.json +323 -0
  47. package/data/components/Media.json +345 -0
  48. package/data/components/Menu.json +317 -0
  49. package/data/components/Message.json +303 -0
  50. package/data/components/Modal.json +444 -0
  51. package/data/components/Navbar.json +996 -0
  52. package/data/components/Notification.json +165 -0
  53. package/data/components/Numberinput.json +364 -0
  54. package/data/components/OrderedList.json +189 -0
  55. package/data/components/Pagination.json +619 -0
  56. package/data/components/Panel.json +582 -0
  57. package/data/components/Paragraph.json +107 -0
  58. package/data/components/Pre.json +114 -0
  59. package/data/components/Progress.json +137 -0
  60. package/data/components/Radio.json +164 -0
  61. package/data/components/Radios.json +240 -0
  62. package/data/components/Rate.json +466 -0
  63. package/data/components/Reveal.json +177 -0
  64. package/data/components/Section.json +123 -0
  65. package/data/components/Select.json +526 -0
  66. package/data/components/Sidebar.json +488 -0
  67. package/data/components/Skeleton.json +162 -0
  68. package/data/components/Slider.json +534 -0
  69. package/data/components/Span.json +100 -0
  70. package/data/components/Steps.json +452 -0
  71. package/data/components/Strong.json +105 -0
  72. package/data/components/SubTitle.json +233 -0
  73. package/data/components/Switch.json +291 -0
  74. package/data/components/Table.json +490 -0
  75. package/data/components/Tabs.json +592 -0
  76. package/data/components/Tag.json +197 -0
  77. package/data/components/Taginput.json +587 -0
  78. package/data/components/Tags.json +181 -0
  79. package/data/components/TextArea.json +483 -0
  80. package/data/components/Theme.json +65 -0
  81. package/data/components/TimeInput.json +906 -0
  82. package/data/components/Title.json +240 -0
  83. package/data/components/Toast.json +308 -0
  84. package/data/components/Tooltip.json +212 -0
  85. package/data/components/UnorderedList.json +149 -0
  86. package/data/components/Valid value constants.json +16 -0
  87. package/data/components/classNames.json +65 -0
  88. package/data/components/useBulmaClasses.json +169 -0
  89. package/data/components/usePrefixedClassNames.json +25 -0
  90. package/data/skills/bestax-custom-component/SKILL.md +196 -0
  91. package/data/skills/bestax-custom-component/examples/stat-card.tsx +105 -0
  92. package/data/skills/bestax-custom-component/references/api.md +90 -0
  93. package/data/skills/bestax-custom-component/references/component-catalog.md +149 -0
  94. package/data/skills/bestax-custom-component/references/library-contributor.md +395 -0
  95. package/data/skills/bestax-custom-component/references/patterns.md +136 -0
  96. package/data/skills/bestax-form/SKILL.md +254 -0
  97. package/data/skills/bestax-form/references/api.md +103 -0
  98. package/data/skills/bestax-form/references/patterns.md +210 -0
  99. package/data/skills/bestax-icons/SKILL.md +80 -0
  100. package/data/skills/bestax-icons/examples/icon-usage.tsx +80 -0
  101. package/data/skills/bestax-icons/references/icon-libraries.md +131 -0
  102. package/data/skills/bestax-layout-scaffold/SKILL.md +196 -0
  103. package/data/skills/bestax-layout-scaffold/examples/app-shell.tsx +86 -0
  104. package/data/skills/bestax-layout-scaffold/examples/card-grid.tsx +106 -0
  105. package/data/skills/bestax-layout-scaffold/examples/centered.tsx +56 -0
  106. package/data/skills/bestax-layout-scaffold/examples/content-page.tsx +90 -0
  107. package/data/skills/bestax-layout-scaffold/examples/landing.tsx +122 -0
  108. package/data/skills/bestax-layout-scaffold/references/archetypes.md +246 -0
  109. package/data/skills/bestax-layout-scaffold/references/layout-components.md +269 -0
  110. package/data/skills/bestax-migrate/SKILL.md +78 -0
  111. package/data/skills/bestax-migrate/references/component-map.md +91 -0
  112. package/data/skills/bestax-migrate/references/css-migration.md +100 -0
  113. package/data/skills/bestax-migrate/references/prop-map.md +48 -0
  114. package/data/skills/bestax-migrate/references/unmappables.md +124 -0
  115. package/data/skills/bestax-optimize/SKILL.md +131 -0
  116. package/data/skills/bestax-optimize/references/modular-build.md +173 -0
  117. package/data/skills/bestax-theming/SKILL.md +117 -0
  118. package/data/skills/bestax-theming/examples/dark-mode.tsx +38 -0
  119. package/data/skills/bestax-theming/examples/theme-config.tsx +60 -0
  120. package/data/skills/bestax-theming/references/css-variables.md +466 -0
  121. package/data/skills/bestax-theming/references/themeable-components.md +119 -0
  122. package/data/skills.json +148 -0
  123. package/dist/data.d.ts +131 -0
  124. package/dist/data.d.ts.map +1 -0
  125. package/dist/data.js +111 -0
  126. package/dist/format.d.ts +37 -0
  127. package/dist/format.d.ts.map +1 -0
  128. package/dist/format.js +178 -0
  129. package/dist/helper-props.d.ts +57 -0
  130. package/dist/helper-props.d.ts.map +1 -0
  131. package/dist/helper-props.js +249 -0
  132. package/dist/index.d.ts +3 -0
  133. package/dist/index.d.ts.map +1 -0
  134. package/dist/index.js +18 -0
  135. package/dist/search.d.ts +32 -0
  136. package/dist/search.d.ts.map +1 -0
  137. package/dist/search.js +194 -0
  138. package/dist/server.d.ts +28 -0
  139. package/dist/server.d.ts.map +1 -0
  140. package/dist/server.js +616 -0
  141. package/dist/version.d.ts +29 -0
  142. package/dist/version.d.ts.map +1 -0
  143. package/dist/version.js +147 -0
  144. package/package.json +70 -0
@@ -0,0 +1,332 @@
1
+ {
2
+ "name": "Level",
3
+ "kind": "component",
4
+ "category": "layout",
5
+ "slug": "layout/level",
6
+ "docsUrl": "https://bestax.io/docs/api/layout/level",
7
+ "examples": [
8
+ {
9
+ "title": "Default Level",
10
+ "code": "<Level>\n <Level.Left>\n <Level.Item>\n <SubTitle as=\"p\" size=\"5\">\n <Strong>Favorite Posts</Strong>\n </SubTitle>\n </Level.Item>\n <Level.Item>\n <Field hasAddons>\n <Control>\n <Input type=\"text\" placeholder=\"Find a post\" />\n </Control>\n <Control>\n <Button>Search</Button>\n </Control>\n </Field>\n </Level.Item>\n </Level.Left>\n <Level.Right>\n <Level.Item as=\"p\">\n <Strong>All</Strong>\n </Level.Item>\n <Level.Item as=\"p\">\n <Link>Published</Link>\n </Level.Item>\n <Level.Item as=\"p\">\n <Link>Drafts</Link>\n </Level.Item>\n <Level.Item as=\"p\">\n <Link>Deleted</Link>\n </Level.Item>\n <Level.Item as=\"p\">\n <Button color=\"success\" as=\"a\">\n New\n </Button>\n </Level.Item>\n </Level.Right>\n</Level>"
11
+ },
12
+ {
13
+ "title": "Centered Level (Statistics)",
14
+ "code": "<Level>\n <Level.Item hasTextCentered>\n <Block>\n <Paragraph className=\"heading\">Posts</Paragraph>\n <Title as=\"p\">1,234</Title>\n </Block>\n </Level.Item>\n <Level.Item hasTextCentered>\n <Block>\n <Paragraph className=\"heading\">Following</Paragraph>\n <Title as=\"p\">6789</Title>\n </Block>\n </Level.Item>\n <Level.Item hasTextCentered>\n <Block>\n <Paragraph className=\"heading\">Followers</Paragraph>\n <Title as=\"p\">123K</Title>\n </Block>\n </Level.Item>\n <Level.Item hasTextCentered>\n <Block>\n <Paragraph className=\"heading\">Likes</Paragraph>\n <Title as=\"p\">9876</Title>\n </Block>\n </Level.Item>\n</Level>"
15
+ },
16
+ {
17
+ "title": "Centered Level Menu",
18
+ "code": "<Level>\n <Level.Item as=\"p\" hasTextCentered>\n <Link textColor=\"info\">Getting Started</Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link textColor=\"info\">APIs</Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <img src=\"/img/bestax-type.svg\" alt=\"Bestax\" style={{ height: 30 }} />\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link textColor=\"info\">Versions</Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link textColor=\"info\">FAQ</Link>\n </Level.Item>\n</Level>"
19
+ },
20
+ {
21
+ "title": "Mobile Level",
22
+ "code": "<Level isMobile>\n <Level.Item hasTextCentered>\n <Block>\n <Paragraph className=\"heading\">Posts</Paragraph>\n <Title as=\"p\">1,234</Title>\n </Block>\n </Level.Item>\n <Level.Item hasTextCentered>\n <Block>\n <Paragraph className=\"heading\">Following</Paragraph>\n <Title as=\"p\">4567</Title>\n </Block>\n </Level.Item>\n <Level.Item hasTextCentered>\n <Block>\n <Paragraph className=\"heading\">Followers</Paragraph>\n <Title as=\"p\">123K</Title>\n </Block>\n </Level.Item>\n <Level.Item hasTextCentered>\n <Block>\n <Paragraph className=\"heading\">Likes</Paragraph>\n <Title as=\"p\">9876</Title>\n </Block>\n </Level.Item>\n</Level>"
23
+ },
24
+ {
25
+ "title": "Compound (dot-notation) usage",
26
+ "code": "<Level>\n <Level.Left>\n <Level.Item>\n <Title as=\"p\" size=\"5\">\n <strong>All Posts</strong>\n </Title>\n </Level.Item>\n </Level.Left>\n <Level.Right>\n <Level.Item as=\"p\">\n <a>Published</a>\n </Level.Item>\n <Level.Item as=\"p\">\n <Button color=\"success\" as=\"a\">\n New\n </Button>\n </Level.Item>\n </Level.Right>\n</Level>"
27
+ }
28
+ ],
29
+ "accessibility": "- The root `Level` renders as a semantic `<nav>` for grouping and navigation.\n- Items can be rendered as `<div>`, `<p>`, or `<a>`. Use `as=\"a\"` for links, and provide clear text or accessible labels.\n- Use Bulma helper props for spacing and color to improve contrast and readability.\n\n:::note\nFor best accessibility, use semantic elements for headings/content within items, and ensure interactive elements (like `Button` or links) are focusable and labeled.\n:::",
30
+ "related": ["Button", "Field", "Input", "Title", "useBulmaClasses"],
31
+ "storybook": "https://bestax.io/storybook/?path=/story/layout-level--default",
32
+ "summary": "The `Level` component provides a flexible horizontal layout for your Bulma React UI, perfect for aligning items on the left and right, distributing items evenly, or centering statistics and controls.",
33
+ "import": "import { Level } from '@allxsmith/bestax-bulma';",
34
+ "sourceFile": "bulma-ui/src/layout/Level.tsx",
35
+ "rootClass": "level",
36
+ "parts": [
37
+ {
38
+ "path": "Level",
39
+ "summary": "The `Level` component provides a flexible horizontal layout for your Bulma React UI, perfect for aligning items on the left and right, distributing items evenly, or centering statistics and controls.",
40
+ "component": null,
41
+ "props": [
42
+ {
43
+ "name": "isMobile",
44
+ "type": "boolean",
45
+ "default": "false",
46
+ "description": "Keeps the level horizontal on mobile (Bulma `is-mobile`). Without it the level stacks vertically below tablet.",
47
+ "required": false,
48
+ "inherited": false,
49
+ "deprecated": false
50
+ },
51
+ {
52
+ "name": "color",
53
+ "type": "Bulma color | 'inherit' | 'current'",
54
+ "default": null,
55
+ "description": "Bulma color modifier for the level.",
56
+ "required": false,
57
+ "inherited": false,
58
+ "deprecated": false,
59
+ "valuesRef": "helpers/valid-values"
60
+ },
61
+ {
62
+ "name": "bgColor",
63
+ "type": "Bulma color | 'inherit' | 'current'",
64
+ "default": null,
65
+ "description": "Bulma background color helper.",
66
+ "required": false,
67
+ "inherited": false,
68
+ "deprecated": false,
69
+ "valuesRef": "helpers/valid-values"
70
+ },
71
+ {
72
+ "name": "textColor",
73
+ "type": "Bulma color | 'inherit' | 'current'",
74
+ "default": null,
75
+ "description": "Bulma text color helper.",
76
+ "required": false,
77
+ "inherited": false,
78
+ "deprecated": false,
79
+ "valuesRef": "helpers/valid-values"
80
+ },
81
+ {
82
+ "name": "className",
83
+ "type": "string",
84
+ "default": null,
85
+ "description": "Additional CSS classes.",
86
+ "required": false,
87
+ "inherited": false,
88
+ "deprecated": false
89
+ },
90
+ {
91
+ "name": "children",
92
+ "type": "React.ReactNode",
93
+ "default": null,
94
+ "description": "Level content (`Level.Left`, `Level.Right`, `Level.Item`).",
95
+ "required": false,
96
+ "inherited": false,
97
+ "deprecated": false
98
+ }
99
+ ],
100
+ "extraProps": [],
101
+ "catchAll": "All standard HTML attributes and Bulma helper props",
102
+ "types": []
103
+ },
104
+ {
105
+ "path": "Level.Left",
106
+ "summary": "Left-aligned content.",
107
+ "component": null,
108
+ "props": [
109
+ {
110
+ "name": "color",
111
+ "type": "Bulma color | 'inherit' | 'current'",
112
+ "default": null,
113
+ "description": "Bulma color modifier.",
114
+ "required": false,
115
+ "inherited": false,
116
+ "deprecated": false,
117
+ "valuesRef": "helpers/valid-values"
118
+ },
119
+ {
120
+ "name": "bgColor",
121
+ "type": "Bulma color | 'inherit' | 'current'",
122
+ "default": null,
123
+ "description": "Background color.",
124
+ "required": false,
125
+ "inherited": false,
126
+ "deprecated": false,
127
+ "valuesRef": "helpers/valid-values"
128
+ },
129
+ {
130
+ "name": "textColor",
131
+ "type": "Bulma color | 'inherit' | 'current'",
132
+ "default": null,
133
+ "description": "Text color.",
134
+ "required": false,
135
+ "inherited": false,
136
+ "deprecated": false,
137
+ "valuesRef": "helpers/valid-values"
138
+ },
139
+ {
140
+ "name": "className",
141
+ "type": "string",
142
+ "default": null,
143
+ "description": "Additional CSS classes.",
144
+ "required": false,
145
+ "inherited": false,
146
+ "deprecated": false
147
+ },
148
+ {
149
+ "name": "children",
150
+ "type": "React.ReactNode",
151
+ "default": null,
152
+ "description": "Content.",
153
+ "required": false,
154
+ "inherited": false,
155
+ "deprecated": false
156
+ }
157
+ ],
158
+ "extraProps": [],
159
+ "catchAll": "All standard <div> attributes and Bulma helper props",
160
+ "types": []
161
+ },
162
+ {
163
+ "path": "Level.Right",
164
+ "summary": "Right-aligned content.",
165
+ "component": null,
166
+ "props": [
167
+ {
168
+ "name": "color",
169
+ "type": "Bulma color | 'inherit' | 'current'",
170
+ "default": null,
171
+ "description": "Bulma color modifier.",
172
+ "required": false,
173
+ "inherited": false,
174
+ "deprecated": false,
175
+ "valuesRef": "helpers/valid-values"
176
+ },
177
+ {
178
+ "name": "bgColor",
179
+ "type": "Bulma color | 'inherit' | 'current'",
180
+ "default": null,
181
+ "description": "Background color.",
182
+ "required": false,
183
+ "inherited": false,
184
+ "deprecated": false,
185
+ "valuesRef": "helpers/valid-values"
186
+ },
187
+ {
188
+ "name": "textColor",
189
+ "type": "Bulma color | 'inherit' | 'current'",
190
+ "default": null,
191
+ "description": "Text color.",
192
+ "required": false,
193
+ "inherited": false,
194
+ "deprecated": false,
195
+ "valuesRef": "helpers/valid-values"
196
+ },
197
+ {
198
+ "name": "className",
199
+ "type": "string",
200
+ "default": null,
201
+ "description": "Additional CSS classes.",
202
+ "required": false,
203
+ "inherited": false,
204
+ "deprecated": false
205
+ },
206
+ {
207
+ "name": "children",
208
+ "type": "React.ReactNode",
209
+ "default": null,
210
+ "description": "Content.",
211
+ "required": false,
212
+ "inherited": false,
213
+ "deprecated": false
214
+ }
215
+ ],
216
+ "extraProps": [],
217
+ "catchAll": "All standard <div> attributes and Bulma helper props",
218
+ "types": []
219
+ },
220
+ {
221
+ "path": "Level.Item",
222
+ "summary": "Individual item, can be rendered as `div`, `p`, or `a`.",
223
+ "component": null,
224
+ "props": [
225
+ {
226
+ "name": "as",
227
+ "type": "'div' | 'p' | 'a'",
228
+ "default": "'div'",
229
+ "description": "Element type to render.",
230
+ "required": false,
231
+ "inherited": false,
232
+ "deprecated": false
233
+ },
234
+ {
235
+ "name": "hasTextCentered",
236
+ "type": "boolean",
237
+ "default": "false",
238
+ "description": "Center the text in the item.",
239
+ "required": false,
240
+ "inherited": false,
241
+ "deprecated": false
242
+ },
243
+ {
244
+ "name": "color",
245
+ "type": "Bulma color | 'inherit' | 'current'",
246
+ "default": null,
247
+ "description": "Bulma color modifier.",
248
+ "required": false,
249
+ "inherited": false,
250
+ "deprecated": false,
251
+ "valuesRef": "helpers/valid-values"
252
+ },
253
+ {
254
+ "name": "bgColor",
255
+ "type": "Bulma color | 'inherit' | 'current'",
256
+ "default": null,
257
+ "description": "Background color.",
258
+ "required": false,
259
+ "inherited": false,
260
+ "deprecated": false,
261
+ "valuesRef": "helpers/valid-values"
262
+ },
263
+ {
264
+ "name": "textColor",
265
+ "type": "Bulma color | 'inherit' | 'current'",
266
+ "default": null,
267
+ "description": "Text color.",
268
+ "required": false,
269
+ "inherited": false,
270
+ "deprecated": false,
271
+ "valuesRef": "helpers/valid-values"
272
+ },
273
+ {
274
+ "name": "className",
275
+ "type": "string",
276
+ "default": null,
277
+ "description": "Additional CSS classes.",
278
+ "required": false,
279
+ "inherited": false,
280
+ "deprecated": false
281
+ },
282
+ {
283
+ "name": "children",
284
+ "type": "React.ReactNode",
285
+ "default": null,
286
+ "description": "Content.",
287
+ "required": false,
288
+ "inherited": false,
289
+ "deprecated": false
290
+ },
291
+ {
292
+ "name": "href",
293
+ "type": "string",
294
+ "default": null,
295
+ "description": "Href for \"a\" tag.",
296
+ "required": false,
297
+ "inherited": false,
298
+ "deprecated": false
299
+ },
300
+ {
301
+ "name": "target",
302
+ "type": "string",
303
+ "default": null,
304
+ "description": "Target for \"a\" tag",
305
+ "required": false,
306
+ "inherited": false,
307
+ "deprecated": false
308
+ },
309
+ {
310
+ "name": "rel",
311
+ "type": "string",
312
+ "default": null,
313
+ "description": "Rel for \"a\" tag",
314
+ "required": false,
315
+ "inherited": false,
316
+ "deprecated": false
317
+ }
318
+ ],
319
+ "extraProps": [],
320
+ "catchAll": "All standard <div> attributes and Bulma helper props",
321
+ "types": []
322
+ }
323
+ ],
324
+ "cssVars": [
325
+ {
326
+ "css": "--bulma-level-item-spacing",
327
+ "sass": "$level-item-spacing",
328
+ "default": "calc(var(--bulma-block-spacing) * 0.5)",
329
+ "scope": "component"
330
+ }
331
+ ]
332
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "name": "Link",
3
+ "kind": "component",
4
+ "category": "elements",
5
+ "slug": "elements/link",
6
+ "docsUrl": "https://bestax.io/docs/api/elements/link",
7
+ "examples": [
8
+ { "title": "Default Link", "code": "<Link href=\"#\">Default Link</Link>" },
9
+ {
10
+ "title": "Primary Color Link",
11
+ "code": "<Link href=\"#\" textColor=\"primary\">\n Primary Link\n</Link>"
12
+ },
13
+ {
14
+ "title": "Danger Color Link",
15
+ "code": "<Link href=\"#\" textColor=\"danger\">\n Danger Link\n</Link>"
16
+ },
17
+ {
18
+ "title": "Active Link",
19
+ "code": "<Link href=\"#\" isActive>\n Active Link\n</Link>"
20
+ },
21
+ {
22
+ "title": "External Link",
23
+ "code": "<Link href=\"https://bulma.io\" target=\"_blank\" rel=\"noopener noreferrer\">\n Open Bulma Docs\n</Link>"
24
+ },
25
+ {
26
+ "title": "Link That Looks Like a Button",
27
+ "code": "<Button as=\"a\" href=\"#\" color=\"primary\">\n Button Link\n</Button>"
28
+ },
29
+ {
30
+ "title": "Polymorphic `as` (Router Links)",
31
+ "code": "import { Link as RouterLink } from 'react-router-dom';\nimport { Link } from '@allxsmith/bestax-bulma';\n\n<Link as={RouterLink} to=\"/about\" textColor=\"primary\">\n About\n</Link>;"
32
+ },
33
+ {
34
+ "title": "Large Text Link",
35
+ "code": "<Link href=\"#\" textSize=\"3\">\n Large Link\n</Link>"
36
+ },
37
+ {
38
+ "title": "Bold Link",
39
+ "code": "<Link href=\"#\" textWeight=\"bold\">\n Bold Link\n</Link>"
40
+ },
41
+ {
42
+ "title": "All Colors",
43
+ "code": "<Block display=\"flex\" flexDirection=\"column\" gap=\"2\">\n <Link href=\"#\" textColor=\"primary\">\n Primary Link\n </Link>\n <Link href=\"#\" textColor=\"link\">\n Link Color Link\n </Link>\n <Link href=\"#\" textColor=\"info\">\n Info Link\n </Link>\n <Link href=\"#\" textColor=\"success\">\n Success Link\n </Link>\n <Link href=\"#\" textColor=\"warning\">\n Warning Link\n </Link>\n <Link href=\"#\" textColor=\"danger\">\n Danger Link\n </Link>\n</Block>"
44
+ },
45
+ {
46
+ "title": "Inline Link",
47
+ "code": "<Paragraph>\n This is a paragraph with an <Link href=\"#\">inline link</Link> in the middle of\n the text.\n</Paragraph>"
48
+ }
49
+ ],
50
+ "accessibility": "- **Descriptive Text:** Use meaningful link text that describes the destination, not generic text like \"click here\".\n- **External Links:** When opening links in new tabs, consider informing users (e.g., with an icon or text like \"opens in new tab\").\n- **Focus States:** Links inherit browser focus styles. Customize with CSS if needed.\n- **Keyboard Navigation:** Links are naturally keyboard accessible via Tab and Enter keys.\n\n:::info\nFor navigation menus, consider using the `isActive` prop to indicate the current page.\n:::\n\n:::warning Links Are for Navigation, Buttons Are for Actions\nPer [Section 508](https://www.section508.gov/) and [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) best practices, links (`<a>`) should navigate to a URL — not trigger an action via `onClick` alone. If your element performs an action (opening a modal, submitting data, toggling state, etc.) without navigating, use a [`Button`](./button.md) or [`LinkButton`](./linkbutton.md) instead. A `<Link href=\"#\" onClick={handleClick}>` is an anti-pattern that confuses screen readers and fails accessibility audits.\n:::",
51
+ "related": ["Button", "Paragraph", "useBulmaClasses"],
52
+ "storybook": "https://bestax.io/storybook/?path=/story/elements-link--default",
53
+ "summary": "The `Link` component renders a styled anchor (`<a>`) element with Bulma helper class integration.",
54
+ "import": "import { Link } from '@allxsmith/bestax-bulma';",
55
+ "sourceFile": "bulma-ui/src/elements/Link.tsx",
56
+ "rootClass": null,
57
+ "parts": [
58
+ {
59
+ "path": "Link",
60
+ "summary": "The `Link` component renders a styled anchor (`<a>`) element with Bulma helper class integration.",
61
+ "component": null,
62
+ "props": [
63
+ {
64
+ "name": "className",
65
+ "type": "string",
66
+ "default": null,
67
+ "description": "Additional CSS classes to apply.",
68
+ "required": false,
69
+ "inherited": false,
70
+ "deprecated": false
71
+ },
72
+ {
73
+ "name": "textColor",
74
+ "type": "Bulma color | 'inherit' | 'current'",
75
+ "default": null,
76
+ "description": "Text color helper.",
77
+ "required": false,
78
+ "inherited": false,
79
+ "deprecated": false,
80
+ "valuesRef": "helpers/valid-values"
81
+ },
82
+ {
83
+ "name": "bgColor",
84
+ "type": "Bulma color | 'inherit' | 'current'",
85
+ "default": null,
86
+ "description": "Background color helper.",
87
+ "required": false,
88
+ "inherited": false,
89
+ "deprecated": false,
90
+ "valuesRef": "helpers/valid-values"
91
+ },
92
+ {
93
+ "name": "isActive",
94
+ "type": "boolean",
95
+ "default": "false",
96
+ "description": "Whether the link appears active.",
97
+ "required": false,
98
+ "inherited": false,
99
+ "deprecated": false
100
+ },
101
+ {
102
+ "name": "as",
103
+ "type": "React.ElementType",
104
+ "default": "'a'",
105
+ "description": "Render as a custom component (e.g. a router `Link`) instead of `<a>`. Defaults to `'a'`.",
106
+ "required": false,
107
+ "inherited": false,
108
+ "deprecated": false
109
+ },
110
+ {
111
+ "name": "children",
112
+ "type": "React.ReactNode",
113
+ "default": null,
114
+ "description": "Content to render inside the link.",
115
+ "required": false,
116
+ "inherited": false,
117
+ "deprecated": false
118
+ }
119
+ ],
120
+ "extraProps": [
121
+ {
122
+ "name": "href",
123
+ "type": "string",
124
+ "default": null,
125
+ "description": "The URL the link points to.",
126
+ "required": false,
127
+ "inherited": false,
128
+ "deprecated": false
129
+ },
130
+ {
131
+ "name": "target",
132
+ "type": "'_self' | '_blank' | '_parent' | '_top'",
133
+ "default": null,
134
+ "description": "Where to open the linked document.",
135
+ "required": false,
136
+ "inherited": false,
137
+ "deprecated": false
138
+ },
139
+ {
140
+ "name": "rel",
141
+ "type": "string",
142
+ "default": null,
143
+ "description": "Relationship between current and linked document.",
144
+ "required": false,
145
+ "inherited": false,
146
+ "deprecated": false
147
+ }
148
+ ],
149
+ "catchAll": "All standard <a> attributes and Bulma helper props",
150
+ "types": []
151
+ }
152
+ ],
153
+ "cssVars": []
154
+ }