bestax-mcp 1.18.69 → 1.18.70

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/data/catalog.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 2,
3
3
  "generatedFrom": {
4
4
  "package": "@allxsmith/bestax-bulma",
5
- "version": "5.73.9"
5
+ "version": "5.73.10"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -46,7 +46,7 @@
46
46
  "code": "<AppFrame>\n <AppFrameHeader>\n <Navbar aria-label=\"Site\">\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <strong>Acme</strong>\n </Navbar.Item>\n <AppFrameBurger />\n </Navbar.Brand>\n </Navbar>\n </AppFrameHeader>\n <AppFrameNav>\n <Menu>\n <Menu.List>\n <Menu.Item href=\"#\" active>\n Dashboard\n </Menu.Item>\n </Menu.List>\n </Menu>\n </AppFrameNav>\n <AppFrame.Main>\n <Section>\n <Paragraph>\n AppFrameNav and AppFrame.Nav are the same component.\n </Paragraph>\n </Section>\n </AppFrame.Main>\n</AppFrame>"
47
47
  }
48
48
  ],
49
- "accessibility": "- **Landmarks:** the header, the nav, the page and the footer are the page's banner, navigation,\n main and contentinfo landmarks, and the aside a complementary one, as long as the frame sits at\n the top of the page. A development build warns when it sits inside a `main` or a sectioning\n element, where the header and footer stop being landmarks.\n- **Names:** the nav is named \"Sections\" (`labels.nav`), since the `Navbar` in the header names\n its own navigation. The name leaves out the word \"navigation\", which the role says. A `Menu`\n in the nav keeps its `<aside>`, which inside a `<nav>` is a plain element unless it's named.\n- **Skip link:** the first thing on the page, hidden until it has focus, moves focus to the page's\n `<main>` (WCAG 2.4.1).\n- **Sticky header:** `scroll-padding-top` on the document keeps an in-page link's target and a\n focused element below the header (WCAG 2.4.11, technique C43).\n- **The burger** is a button named \"menu\" (`labels.burger`), with `aria-expanded` saying whether\n the drawer is open, or from the breakpoint up whether the column is shown, and `aria-controls`\n naming the nav. The server can't know the width, so until the page hydrates the burger has no\n `aria-expanded` and shows its bars, and the first paint after hydration has both right.\n- **The drawer** is modal by default: focus moves to its close button, Tab and Shift+Tab stay\n inside, the page doesn't scroll, the rest of the frame is inert, and Escape closes it while it's\n the topmost overlay, so a `Modal` opened from it closes first. Escape, the close button and a\n click on the backdrop hand focus back to the burger, and so does a press outside the drawer\n without `overlay`, before the press moves it to what was pressed. The close button is there for\n a touch screen reader user, who has no Escape key. It stays a navigation landmark rather than a\n dialog: the inert frame is what keeps assistive technology inside it, so keep the page's content\n inside the frame's parts.\n- **A closed drawer and a collapsed column** are `visibility: hidden`, so their links are out of\n the Tab order and the accessibility tree before any script runs.\n- **The resize handle** is a focusable `separator` with `aria-valuenow`, `aria-valuemin` and\n `aria-valuemax` in pixels, `aria-controls` naming the nav, and the nav's name, so it's read as\n \"Sections, separator, 256\". Collapsed, its value is the rail's width, or 0 without a rail, which\n is where its range starts. Its keys do everything a drag does (WCAG 2.1.1). As with Splitter's\n handles, a pointer can't set a width without dragging; the column works at its default width,\n and the burger collapses and expands it with a click. Its strip is 24 pixels wide for a coarse\n pointer (WCAG 2.5.8), and its line, on hover, focus and drag, is a border, which forced colors\n keeps in the system's highlight.\n- **The icon rail** keeps every name: labels are visually hidden, never removed, and icons are\n `aria-hidden`. Each tooltip adds no `aria-describedby` and is `aria-hidden` itself, so the name\n isn't read twice. It shows on keyboard focus as well as hover, stays while the pointer moves\n onto it, and Escape hides it (WCAG 1.4.13). A section's button in the rail reports\n `aria-expanded=\"false\"`, since the rail hides its list, and pressing it expands the column and\n opens the section.\n- **Reflow:** at 320 pixels wide the nav is a drawer, so nothing scrolls sideways (WCAG 1.4.10).\n- **Motion:** the drawer's slide, the backdrop's fade and the column's collapse don't play under\n `prefers-reduced-motion: reduce`.\n- **Forced colors:** the column keeps its divider, the drawer gets a border on its open edge in\n place of its shadow, and the burger keeps its bars, as a [`Navbar`](https://bestax.io/docs/api/components/navbar)'s\n does.\n- **Right to left:** the column sits on the right, and the drawer slides in from the right.",
49
+ "accessibility": "- **Landmarks:** the header, the nav, the page and the footer are the page's banner, navigation,\n main and contentinfo landmarks, and the aside a complementary one, as long as the frame sits at\n the top of the page. A development build warns when it sits inside a `main` or a sectioning\n element, where the header and footer stop being landmarks.\n- **Names:** the nav is named \"Sections\" (`labels.nav`), since the `Navbar` in the header names\n its own navigation. The name leaves out the word \"navigation\", which the role says. A `Menu`\n in the nav keeps its `<aside>`, which inside a `<nav>` is a plain element unless it's named.\n- **Skip link:** the first thing on the page, hidden until it has focus, moves focus to the page's\n `<main>` (WCAG 2.4.1).\n- **Sticky header:** `scroll-padding-top` on the document keeps an in-page link's target and a\n focused element below the header (WCAG 2.4.11, technique C43).\n- **The burger** is a button named \"menu\" (`labels.burger`), with `aria-expanded` saying whether\n the drawer is open, or from the breakpoint up whether the column is shown, and `aria-controls`\n naming the nav. The server can't know the width, so until the page hydrates the burger has no\n `aria-expanded` and shows its bars, and the first paint after hydration has both right.\n- **The drawer** is modal by default: focus moves to its close button, Tab and Shift+Tab stay\n inside, the page doesn't scroll, the rest of the frame is inert, and Escape closes it while it's\n the topmost overlay, so a `Modal` opened from it closes first. Escape, the close button and a\n click on the backdrop hand focus back to the burger, and so does a press outside the drawer\n without `overlay`, before the press moves it to what was pressed. The close button is there for\n a touch screen reader user, who has no Escape key. It stays a navigation landmark rather than a\n dialog: the inert frame is what keeps assistive technology inside it, so keep the page's content\n inside the frame's parts.\n- **A closed drawer and a collapsed column** are `visibility: hidden`, so their links are out of\n the Tab order and the accessibility tree before any script runs.\n- **The resize handle** is a focusable `separator` with `aria-valuenow`, `aria-valuemin` and\n `aria-valuemax` in pixels, `aria-controls` naming the nav, and the nav's name, so it's read as\n \"Sections, separator, 256\". Collapsed, its value is the rail's width, or 0 without a rail, which\n is where its range starts. Its keys do everything a drag does (WCAG 2.1.1). As with Splitter's\n handles, a pointer can't set a width without dragging; the column works at its default width,\n and the burger collapses and expands it with a click. Its strip is 24 pixels wide for a coarse\n pointer (WCAG 2.5.8), and its line, on hover, focus and drag, is a border, which forced colors\n keeps in the system's highlight, with its focus ring in the text color.\n- **The icon rail** keeps every name: labels are visually hidden, never removed, and icons are\n `aria-hidden`. Each tooltip adds no `aria-describedby` and is `aria-hidden` itself, so the name\n isn't read twice. It shows on keyboard focus as well as hover, stays while the pointer moves\n onto it, and Escape hides it (WCAG 1.4.13). A section's button in the rail reports\n `aria-expanded=\"false\"`, since the rail hides its list, and pressing it expands the column and\n opens the section.\n- **Reflow:** at 320 pixels wide the nav is a drawer, so nothing scrolls sideways (WCAG 1.4.10).\n- **Motion:** the drawer's slide, the backdrop's fade and the column's collapse don't play under\n `prefers-reduced-motion: reduce`.\n- **Forced colors:** the column keeps its divider, the drawer gets a border on its open edge in\n place of its shadow, and the burger keeps its bars, as a [`Navbar`](https://bestax.io/docs/api/components/navbar)'s\n does.\n- **Right to left:** the column sits on the right, and the drawer slides in from the right.",
50
50
  "related": [
51
51
  "Footer",
52
52
  "Menu",
@@ -101,7 +101,7 @@
101
101
  "code": "function example() {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n const [tag, setTag] = React.useState<string>();\n\n return (\n <>\n <Button color=\"primary\" ref={buttonRef}>\n Target\n </Button>\n <Button ml=\"2\" onClick={() => setTag(buttonRef.current?.tagName)}>\n Read the tag from its ref\n </Button>\n <p>Rendered element: {tag ?? '—'}</p>\n </>\n );\n}"
102
102
  }
103
103
  ],
104
- "accessibility": "- **Labeling:** Always provide descriptive content for buttons for screen readers.\n- **Icons beside text:** Leave the `Icon` unnamed, so the text alone names the button. The icons in [With an Icon](https://bestax.io/docs/api/elements/button#with-an-icon) write out `aria-hidden=\"true\"`, and `Icon` would render it for them anyway, since they have no `ariaLabel`, `aria-label` or `aria-labelledby` to name them and no `role` or `tabIndex` of their own. A named icon joins the button's name instead, so `ariaLabel=\"Download\"` on the icon of a Download button makes a screen reader announce \"Download Download\".\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Keyboard:** When rendered as `<a>`, disabled buttons are not focusable.\n- **Focus:** Use `isFocused` and `isActive` for visual feedback, but rely on browser focus for actual accessibility.\n- **Focus ring:** Bulma shows a focused button with its border and a shadow. A ghost button has neither. A loading or static one has no shadow. All a loading one keeps is its border turning the focus color, which on a colored one is drawn on its own fill, and a loading outlined or text one, or a static one, doesn't change at all. Forced colors (Windows' contrast themes) drops the shadow and sets the border's color. So bestax's styles give a focused ghost, loading or static button, and every focused button in forced colors, an outline. `isFocused` draws it too.\n- **Forced colors:** In Windows' contrast themes a colored button keeps a 1px border, so it still has an edge when the theme replaces its fill, while an outlined button and a `text` one are left as they are. A button with Bulma's `is-selected`, such as a pressed [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton) or the selected button of a `Buttons hasAddons` row, is drawn in the system's highlight colors there, since the fill that marks it is replaced, and a disabled one in the system's color for a disabled control, filled.\n- **Outlined on the dark scheme:** bestax's styles draw an outlined button's label and border at the lightness Bulma picks for its color's text on the page wherever that's lighter than the color's own, so a dark color, such as Bulma's link or bestax's blue primary, reads on the dark page. On a light page an outlined button keeps its color's own lightness. On a surface that stays light on both schemes, such as `bgColor=\"white\"`, give the surface Bulma's `theme-light` class (`bestax-theme-light` under the `bestax-` prefix), which keeps what's inside it on the light scheme's values.\n- **Toggles:** `isActive` tells a screen reader nothing. A button that turns something on or off is a [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which sets `aria-pressed`.\n\n:::note\nA button that shows only an icon is an [`IconButton`](https://bestax.io/docs/api/elements/iconbutton), whose types require an\n`aria-label` or an `aria-labelledby`, and whose `isRounded` makes a circle. On a plain `Button` holding only\nan icon, name it with `aria-label` yourself.\n:::",
104
+ "accessibility": "- **Labeling:** Always provide descriptive content for buttons for screen readers.\n- **Icons beside text:** Leave the `Icon` unnamed, so the text alone names the button. The icons in [With an Icon](https://bestax.io/docs/api/elements/button#with-an-icon) write out `aria-hidden=\"true\"`, and `Icon` would render it for them anyway, since they have no `ariaLabel`, `aria-label` or `aria-labelledby` to name them and no `role` or `tabIndex` of their own. A named icon joins the button's name instead, so `ariaLabel=\"Download\"` on the icon of a Download button makes a screen reader announce \"Download Download\".\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Loading:** while `isLoading` is set, the button carries `aria-busy=\"true\"` and `aria-disabled=\"true\"`, so a screen reader can tell it won't respond, and a click, <kbd>Enter</kbd> or <kbd>Space</kbd> does nothing: `onClick` doesn't run, a submit button doesn't submit its form, and a click on a link doesn't follow its `href`. It keeps focus, since `aria-disabled` doesn't take it away the way `disabled` would.\n- **Keyboard:** When rendered as `<a>`, disabled buttons are not focusable.\n- **Focus:** Use `isFocused` and `isActive` for visual feedback, but rely on browser focus for actual accessibility.\n- **Focus ring:** Bulma shows a focused button with its border and a shadow. A ghost button has neither. A loading or static one has no shadow. All a loading one keeps is its border turning the focus color, which on a colored one is drawn on its own fill, and a loading outlined or text one, or a static one, doesn't change at all. Forced colors (Windows' contrast themes) drops the shadow and sets the border's color. So bestax's styles give a focused ghost, loading or static button, and every focused button in forced colors, an outline. `isFocused` draws it too.\n- **Forced colors:** In Windows' contrast themes a colored button keeps a 1px border, so it still has an edge when the theme replaces its fill, while an outlined button and a `text` one are left as they are. A button with Bulma's `is-selected`, such as a pressed [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton) or the selected button of a `Buttons hasAddons` row, is drawn in the system's highlight colors there, since the fill that marks it is replaced, and a disabled one in the system's color for a disabled control, filled.\n- **Outlined on the dark scheme:** bestax's styles draw an outlined button's label and border at the lightness Bulma picks for its color's text on the page wherever that's lighter than the color's own, so a dark color, such as Bulma's link or bestax's blue primary, reads on the dark page. On a light page an outlined button keeps its color's own lightness. On a surface that stays light on both schemes, such as `bgColor=\"white\"`, give the surface Bulma's `theme-light` class (`bestax-theme-light` under the `bestax-` prefix), which keeps what's inside it on the light scheme's values.\n- **Toggles:** `isActive` tells a screen reader nothing. A button that turns something on or off is a [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which sets `aria-pressed`.\n\n:::note\nA button that shows only an icon is an [`IconButton`](https://bestax.io/docs/api/elements/iconbutton), whose types require an\n`aria-label` or an `aria-labelledby`, and whose `isRounded` makes a circle. On a plain `Button` holding only\nan icon, name it with `aria-label` yourself.\n:::",
105
105
  "related": [
106
106
  "Buttons",
107
107
  "CopyButton",
@@ -170,7 +170,7 @@
170
170
  "name": "isLoading",
171
171
  "type": "boolean",
172
172
  "default": "false",
173
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
173
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
174
174
  "required": false,
175
175
  "inherited": false,
176
176
  "deprecated": false
@@ -193,7 +193,7 @@
193
193
  "name": "isLoading",
194
194
  "type": "boolean",
195
195
  "default": "false",
196
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
196
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
197
197
  "required": false,
198
198
  "inherited": false,
199
199
  "deprecated": false
@@ -387,7 +387,7 @@
387
387
  "name": "isLoading",
388
388
  "type": "boolean",
389
389
  "default": "false",
390
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
390
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
391
391
  "required": false,
392
392
  "inherited": true,
393
393
  "deprecated": false
@@ -746,7 +746,7 @@
746
746
  "name": "isLoading",
747
747
  "type": "boolean",
748
748
  "default": "false",
749
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
749
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
750
750
  "required": false,
751
751
  "inherited": true,
752
752
  "deprecated": false
@@ -985,7 +985,7 @@
985
985
  "name": "isLoading",
986
986
  "type": "boolean",
987
987
  "default": "false",
988
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
988
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
989
989
  "required": false,
990
990
  "inherited": true,
991
991
  "deprecated": false
@@ -30,7 +30,7 @@
30
30
  "code": "function example() {\n const faqs = [\n {\n q: 'What is Bestax?',\n a: 'Bestax is a React component library built on Bulma.',\n },\n { q: 'How do I install it?', a: 'pnpm add @allxsmith/bestax-bulma' },\n { q: 'Is it free?', a: 'Yes, Bestax is open source and free to use.' },\n ];\n\n const [open, setOpen] = useState<number[]>([]);\n\n return (\n <Block>\n <Title size=\"5\" mb=\"4\">\n FAQ\n </Title>\n <Collapses multiple value={open} onChange={setOpen}>\n {faqs.map((faq, index) => (\n <Collapse\n key={faq.q}\n bordered\n trigger={\n <Block p=\"4\" display=\"flex\" justifyContent=\"space-between\">\n <Strong>{faq.q}</Strong>\n <Span aria-hidden=\"true\">\n {open.includes(index) ? '▲' : '▼'}\n </Span>\n </Block>\n }\n >\n <Paragraph p=\"4\" textColor=\"grey-dark\">\n {faq.a}\n </Paragraph>\n </Collapse>\n ))}\n </Collapses>\n </Block>\n );\n}"
31
31
  }
32
32
  ],
33
- "accessibility": "- Trigger has `role=\"button\"` and `tabIndex=\"0\"` for keyboard access\n- Trigger has `aria-expanded` to indicate open/closed state\n- Trigger has `aria-controls` pointing to the content element\n- Content has `aria-hidden` matching the collapsed state, and is `inert` while closed, so its\n links and fields leave the tab order until it opens (under `fade` and `slide` a closed panel\n is only squeezed to height 0)\n- Supports keyboard navigation (Enter and Space to toggle)\n- The trigger is already a button, so give `trigger` text or layout and nothing interactive: no `Button`, `LinkButton`, `<button>`, link or field. One inside would be a second tab stop with no expanded state, nested in the first",
33
+ "accessibility": "- Trigger has `role=\"button\"` and `tabIndex=\"0\"` for keyboard access\n- Trigger has `aria-expanded` to indicate open/closed state\n- Trigger has `aria-controls` pointing to the content element\n- Content has `aria-hidden` matching the collapsed state, and is `inert` while closed, so its\n links and fields leave the tab order until it opens (under `fade` and `slide` a closed panel\n is only squeezed to height 0)\n- Supports keyboard navigation (Enter and Space to toggle)\n- When the system asks for reduced motion, a `fade` or `slide` Collapse opens and closes at once, with no transition. With bestax's CSS loaded, a `collapse-trigger-icon` turns and a bordered trigger's edge appears without one too\n- The trigger is already a button, so give `trigger` text or layout and nothing interactive: no `Button`, `LinkButton`, `<button>`, link or field. One inside would be a second tab stop with no expanded state, nested in the first",
34
34
  "related": [],
35
35
  "storybook": null,
36
36
  "summary": "The `Collapse` component provides an expandable/collapsible content panel.",
@@ -101,7 +101,7 @@
101
101
  "name": "animation",
102
102
  "type": "'fade' | 'slide' | false",
103
103
  "default": "'fade'",
104
- "description": "Animation style, or `false` to disable.",
104
+ "description": "Animation style, or `false` to disable. When the user's system asks for reduced motion, `fade` and `slide` lose their transition, so the panel opens and closes at once.",
105
105
  "required": false,
106
106
  "inherited": false,
107
107
  "deprecated": false
@@ -38,7 +38,7 @@
38
38
  "code": "<Collapses defaultValue={0}>\n <Collapses.Collapse\n bordered\n trigger={\n <Block p=\"4\">\n <Strong>Shipping</Strong>\n </Block>\n }\n >\n <Paragraph p=\"4\">\n Orders leave the warehouse within two business days.\n </Paragraph>\n </Collapses.Collapse>\n <Collapses.Collapse\n bordered\n trigger={\n <Block p=\"4\">\n <Strong>Returns</Strong>\n </Block>\n }\n >\n <Paragraph p=\"4\">\n Send anything back within 30 days for a full refund.\n </Paragraph>\n </Collapses.Collapse>\n</Collapses>"
39
39
  }
40
40
  ],
41
- "accessibility": "Measured against the\n[WAI-ARIA accordion pattern](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/):\n\n- **Implemented.** Each item keeps the wiring `Collapse` gives it: the trigger has\n `role=\"button\"` and `tabIndex=\"0\"`, toggles on Enter and Space, and carries `aria-expanded`\n and an `aria-controls` that points at its own panel. A closed panel is `aria-hidden` and\n `inert`, so its links and fields leave the tab order until it opens. The group only decides\n which items are open.\n- **Not implemented: the heading.** The pattern wraps each trigger button in a heading\n (`role=\"heading\"` with an `aria-level`), so screen reader users can move between items by\n heading. `Collapse` renders the button itself and has no prop to wrap it, and a heading\n placed inside `trigger` doesn't count, because assistive tech reads a button's contents as\n plain text. A heading above the group still names the section as a whole.\n- **Optional parts, not built in.** Arrow keys, Home and End between triggers: each trigger is\n its own tab stop instead. And `role=\"region\"` on panels: to add one, wrap an item's content in\n an element with `role=\"region\"` and an `aria-label` naming the item. The pattern suggests\n regions only when few panels can be open at once, since each one is a landmark.\n- A trigger's text is its accessible name, so name what the item opens (\"Returns\", not\n \"Click here\"). Mark a decorative icon in a trigger `aria-hidden` so it adds nothing to that\n name.\n- The trigger is already a button, so don't put another button or link inside it. Assistive\n tech treats what's inside a button as plain content, so the inner control loses its role\n while still taking a tab stop.",
41
+ "accessibility": "Measured against the\n[WAI-ARIA accordion pattern](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/):\n\n- **Implemented.** Each item keeps the wiring `Collapse` gives it: the trigger has\n `role=\"button\"` and `tabIndex=\"0\"`, toggles on Enter and Space, and carries `aria-expanded`\n and an `aria-controls` that points at its own panel. A closed panel is `aria-hidden` and\n `inert`, so its links and fields leave the tab order until it opens. The group only decides\n which items are open.\n- When the system asks for reduced motion, each item opens and closes at once, with no\n transition, as `Collapse` does.\n- **Not implemented: the heading.** The pattern wraps each trigger button in a heading\n (`role=\"heading\"` with an `aria-level`), so screen reader users can move between items by\n heading. `Collapse` renders the button itself and has no prop to wrap it, and a heading\n placed inside `trigger` doesn't count, because assistive tech reads a button's contents as\n plain text. A heading above the group still names the section as a whole.\n- **Optional parts, not built in.** Arrow keys, Home and End between triggers: each trigger is\n its own tab stop instead. And `role=\"region\"` on panels: to add one, wrap an item's content in\n an element with `role=\"region\"` and an `aria-label` naming the item. The pattern suggests\n regions only when few panels can be open at once, since each one is a landmark.\n- A trigger's text is its accessible name, so name what the item opens (\"Returns\", not\n \"Click here\"). Mark a decorative icon in a trigger `aria-hidden` so it adds nothing to that\n name.\n- The trigger is already a button, so don't put another button or link inside it. Assistive\n tech treats what's inside a button as plain content, so the inner control loses its role\n while still taking a tab stop.",
42
42
  "related": ["Collapse", "Tabs", "useBulmaClasses"],
43
43
  "storybook": "https://bestax.io/storybook/?path=/story/components-collapses--default",
44
44
  "summary": "The `Collapses` component groups `Collapse` items into an accordion that keeps one item open at a time, or any number with `multiple`.",
@@ -182,7 +182,7 @@
182
182
  "name": "animation",
183
183
  "type": "'fade' | 'slide' | false",
184
184
  "default": "'fade'",
185
- "description": "Animation style, or `false` to disable.",
185
+ "description": "Animation style, or `false` to disable. When the user's system asks for reduced motion, `fade` and `slide` lose their transition, so the panel opens and closes at once.",
186
186
  "required": false,
187
187
  "inherited": false,
188
188
  "deprecated": false
@@ -50,7 +50,7 @@
50
50
  "code": "<CopyButton value=\"https://bestax.io\" isDisabled />"
51
51
  }
52
52
  ],
53
- "accessibility": "- **The name follows the words:** with its label shown, the button has no `aria-label`, so its name\n is the text on it, \"Copy\" and then \"Copied\", and a voice control user can say what they see\n ([WCAG 2.5.3](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)).\n- **The result is announced:** a change to a focused button's label isn't read out by every screen\n reader and browser pairing, so each copy, and each failure, is also a polite `role=\"status\"`\n message\n ([WCAG 4.1.3](https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html), technique\n [ARIA22](https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA22)). The region is in the page from\n hydration, well before any click, and is visually hidden. It's portaled to the end of the page,\n or to a `ConfigProvider`'s `portalContainer`, so it isn't a child of the button's `Control` or\n `Buttons` row. Inside an open modal dialog (`aria-modal=\"true\"`), such as a `Modal`, a `Dialog`\n or a `Sidebar` with an overlay, it goes inside the dialog instead, since a screen reader ignores\n a live region behind one. It moves there when the button takes focus or a click. A copy repeated\n while the button still reads \"Copied\" is announced again.\n- **Icon-only, it's still named:** `labels.copy` is its `aria-label` in both states, since there are\n no words to follow, and only the glyph swaps. Give it a name that says what it copies when there\n are several on a page (\"Copy the Production key\").\n- **The glyphs are decorative:** both render `aria-hidden=\"true\"`; the label and the status carry the\n meaning.\n- **Failures aren't hidden:** a copy that didn't happen never shows \"Copied\".\n- **Keyboard and focus:** it's a native `<button type=\"button\">`, so <kbd>Enter</kbd> and\n <kbd>Space</kbd> copy, focus stays on it, and it never submits the form it sits in.\n- **Forced colors:** the glyphs are drawn in `currentColor`, so they take the system's button text\n color.",
53
+ "accessibility": "- **The name follows the words:** with its label shown, the button has no `aria-label`, so its name\n is the text on it, \"Copy\" and then \"Copied\", and a voice control user can say what they see\n ([WCAG 2.5.3](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)).\n- **The result is announced:** a change to a focused button's label isn't read out by every screen\n reader and browser pairing, so each copy, and each failure, is also a polite `role=\"status\"`\n message\n ([WCAG 4.1.3](https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html), technique\n [ARIA22](https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA22)). The region is in the page from\n hydration, well before any click, and is visually hidden. It's portaled to the end of the page,\n or to a `ConfigProvider`'s `portalContainer`, so it isn't a child of the button's `Control` or\n `Buttons` row. Inside an open modal dialog (`aria-modal=\"true\"`), such as a `Modal`, a `Dialog`\n or a `Sidebar` with an overlay, it goes inside the dialog instead, since a screen reader ignores\n a live region behind one. It moves there when the button takes focus or a click. A copy repeated\n while the button still reads \"Copied\" is announced again.\n- **Icon-only, it's still named:** `labels.copy` is its `aria-label` in both states, since there are\n no words to follow, and only the glyph swaps. Give it a name that says what it copies when there\n are several on a page (\"Copy the Production key\").\n- **The glyphs are decorative:** both render `aria-hidden=\"true\"`; the label and the status carry the\n meaning.\n- **Failures aren't hidden:** a copy that didn't happen never shows \"Copied\".\n- **Keyboard and focus:** it's a native `<button type=\"button\">`, so <kbd>Enter</kbd> and\n <kbd>Space</kbd> copy, focus stays on it, and it never submits the form it sits in. While\n `isLoading` is set it copies nothing, as `Button` drops the click, and carries `aria-busy` and\n `aria-disabled`.\n- **Forced colors:** the glyphs are drawn in `currentColor`, so they take the system's button text\n color.",
54
54
  "related": [
55
55
  "Button",
56
56
  "Code",
@@ -166,7 +166,7 @@
166
166
  "name": "isLoading",
167
167
  "type": "boolean",
168
168
  "default": "false",
169
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
169
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
170
170
  "required": false,
171
171
  "inherited": true,
172
172
  "deprecated": false
@@ -58,7 +58,7 @@
58
58
  "code": "function example() {\n const [shown, setShown] = useState(false);\n return (\n <>\n <Button onClick={() => setShown(!shown)}>\n {shown ? 'Hide the stack' : 'Show the stack'}\n </Button>\n {shown && (\n <FloatButtons position=\"bottom-left\">\n <FloatButton.BackToTop />\n <FloatButton.SpeedDial\n aria-label=\"Create\"\n icon=\"plus\"\n color=\"primary\"\n direction=\"right\"\n >\n <FloatButton aria-label=\"Note\" icon=\"note-sticky\" />\n <FloatButton aria-label=\"Task\" icon=\"check\" />\n </FloatButton.SpeedDial>\n </FloatButtons>\n )}\n </>\n );\n}"
59
59
  }
60
60
  ],
61
- "accessibility": "- **A name for every button:** the types require `aria-label` or `aria-labelledby` on a\n `FloatButton` and a speed dial's trigger, and an empty one warns in development. Back to top's\n defaults to \"Back to top\". With `showLabel` or `showLabels`, the name is the text on the button,\n so what a voice control user reads is what they say\n ([WCAG 2.5.3](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name)).\n- **The tooltip doesn't repeat the name:** it shows the name to sighted users on hover and keyboard\n focus, and it's hidden from assistive technology, with no `aria-describedby` on the button, so a\n screen reader hears the name once. It stays while the pointer moves onto it, and Escape hides it,\n as every [`Tooltip`](https://bestax.io/docs/api/components/tooltip) does.\n- **The speed dial is a menu button**\n ([APG](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/)): the trigger has\n `aria-haspopup=\"menu\"` and `aria-expanded`, and `aria-controls` while the menu is open. The menu\n is named by the trigger and holds `menuitem`s. Only activation opens it, never focus, so a\n keyboard user who Tabs past it isn't shown a menu, and `openOnHover` answers the pointer alone.\n A click whose `detail` is 0, which a screen reader's browse mode can send and a pointer doesn't,\n opens it on the nearest action, as Enter does. Closed actions aren't rendered, so they aren't in\n the accessibility tree.\n- **Back to top moves focus:** after it scrolls, focus goes to the top of the content, so the next\n Tab starts there and the next Shift+Tab doesn't scroll back to the bottom\n ([WCAG 2.4.3](https://www.w3.org/WAI/WCAG22/Understanding/focus-order)). Focus moves without\n scrolling, so it doesn't cut the scroll short. Hidden, the button is out of the Tab order and the\n accessibility tree.\n- **Reduced motion:** back to top's scroll is instant, and its fade and the speed dial's are off,\n for someone who prefers reduced motion\n ([WCAG 2.3.3](https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions)). The\n browser's smooth scroll doesn't stop on its own for that preference, so the component checks it.\n- **Focus not obscured:** a float button can cover a focused link near its corner. Give `html` a\n `scroll-padding-bottom` for a bottom-corner button, as\n [Affix's accessibility notes](https://bestax.io/docs/api/components/affix#accessibility) show\n ([WCAG 2.4.11](https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum)).\n- **Reading and Tab order are DOM order,** whatever corner it shows in, so write it after the\n page's main content. In a speed dial, the trigger comes first and then the actions, nearest\n first, so the reading order and the arrows agree.\n- **Forced colors:** the shadow drops out, and every float button keeps an outline inside its edge\n there, colored ones too, so it stays on the page. Keyboard focus, and `isFocused`, widen it in the\n system's highlight color. The default icons draw in `currentColor`.\n- **Right-to-left:** the corner and `direction` are physical, so a dial that runs left still runs\n left, and its arrows still follow the screen. The dial reads the writing direction the browser\n computes, so a `dir` attribute and a CSS `direction` both count.",
61
+ "accessibility": "- **A name for every button:** the types require `aria-label` or `aria-labelledby` on a\n `FloatButton` and a speed dial's trigger, and an empty one warns in development. Back to top's\n defaults to \"Back to top\". With `showLabel` or `showLabels`, the name is the text on the button,\n so what a voice control user reads is what they say\n ([WCAG 2.5.3](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name)).\n- **The tooltip doesn't repeat the name:** it shows the name to sighted users on hover and keyboard\n focus, and it's hidden from assistive technology, with no `aria-describedby` on the button, so a\n screen reader hears the name once. It stays while the pointer moves onto it, and Escape hides it,\n as every [`Tooltip`](https://bestax.io/docs/api/components/tooltip) does.\n- **The speed dial is a menu button**\n ([APG](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/)): the trigger has\n `aria-haspopup=\"menu\"` and `aria-expanded`, and `aria-controls` while the menu is open. The menu\n is named by the trigger and holds `menuitem`s. Only activation opens it, never focus, so a\n keyboard user who Tabs past it isn't shown a menu, and `openOnHover` answers the pointer alone.\n A click whose `detail` is 0, which a screen reader's browse mode can send and a pointer doesn't,\n opens it on the nearest action, as Enter does. Closed actions aren't rendered, so they aren't in\n the accessibility tree.\n- **Back to top moves focus:** after it scrolls, focus goes to the top of the content, so the next\n Tab starts there and the next Shift+Tab doesn't scroll back to the bottom\n ([WCAG 2.4.3](https://www.w3.org/WAI/WCAG22/Understanding/focus-order)). Focus moves without\n scrolling, so it doesn't cut the scroll short. Hidden, the button is out of the Tab order and the\n accessibility tree.\n- **Loading:** a float button with `isLoading`, a speed dial's action included, carries\n `aria-busy=\"true\"` and `aria-disabled=\"true\"`, and a click, <kbd>Enter</kbd> or <kbd>Space</kbd>\n does nothing until it's cleared, as on [`Button`](https://bestax.io/docs/api/elements/button#accessibility). It\n keeps focus. In a speed dial the arrows pass over a loading action, as they pass over a disabled\n one.\n- **Reduced motion:** back to top's scroll is instant, and its fade and the speed dial's are off,\n for someone who prefers reduced motion\n ([WCAG 2.3.3](https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions)). The\n browser's smooth scroll doesn't stop on its own for that preference, so the component checks it.\n- **Focus not obscured:** a float button can cover a focused link near its corner. Give `html` a\n `scroll-padding-bottom` for a bottom-corner button, as\n [Affix's accessibility notes](https://bestax.io/docs/api/components/affix#accessibility) show\n ([WCAG 2.4.11](https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum)).\n- **Reading and Tab order are DOM order,** whatever corner it shows in, so write it after the\n page's main content. In a speed dial, the trigger comes first and then the actions, nearest\n first, so the reading order and the arrows agree.\n- **Forced colors:** the shadow drops out, and every float button keeps an outline inside its edge\n there, colored ones too, so it stays on the page. Keyboard focus, and `isFocused`, widen it in the\n system's highlight color. The default icons draw in `currentColor`.\n- **Right-to-left:** the corner and `direction` are physical, so a dial that runs left still runs\n left, and its arrows still follow the screen. The dial reads the writing direction the browser\n computes, so a `dir` attribute and a CSS `direction` both count.",
62
62
  "related": [
63
63
  "Affix",
64
64
  "Badge",
@@ -182,7 +182,7 @@
182
182
  "name": "isLoading",
183
183
  "type": "boolean",
184
184
  "default": "false",
185
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
185
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
186
186
  "required": false,
187
187
  "inherited": true,
188
188
  "deprecated": false
@@ -584,7 +584,7 @@
584
584
  "name": "isLoading",
585
585
  "type": "boolean",
586
586
  "default": "false",
587
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
587
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
588
588
  "required": false,
589
589
  "inherited": true,
590
590
  "deprecated": false
@@ -54,7 +54,7 @@
54
54
  "code": "<IconButton\n as=\"a\"\n href=\"https://bulma.io/documentation/elements/button/\"\n target=\"_blank\"\n rel=\"noreferrer\"\n icon=\"arrow-up-right-from-square\"\n aria-label=\"Bulma's button docs, in a new tab\"\n/>"
55
55
  }
56
56
  ],
57
- "accessibility": "- **A name every time:** an icon-only button's name is its text alternative\n ([WCAG 1.1.1](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html) and\n [4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html)), so the types require\n `aria-label` or `aria-labelledby`, and a development build warns about an empty or blank one. Name\n the action, not the picture.\n- **The name is the button's:** its `aria-label` or `aria-labelledby` names it over anything inside\n it, so a name on the `Icon` is ignored, and there's no need to give one.\n- **Tooltips describe:** a [`Tooltip`](https://bestax.io/docs/api/components/tooltip) around it points the button's\n `aria-describedby` at itself, so the name and the description stay separate. Give the tooltip\n something to add, not the name again.\n- **Keyboard and focus:** it's a native `<button>`, so <kbd>Enter</kbd> and <kbd>Space</kbd> press\n it, with Bulma's focus style. `isLoading` leaves it focusable. While it loads, Bulma takes away the\n shadow that shows focus, so it shows Bulma's focus outline instead when it has keyboard focus.\n- **Target size:** Bulma's smallest is 30 by 30 pixels, above the 24 by 24\n [WCAG 2.5.8](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html) asks for.\n- **Toggles** are [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which reports `aria-pressed`. Give an\n icon-only one an `aria-label` the same way.\n- **Forced colors:** a font icon, or an SVG drawn in `currentColor`, takes the system's text\n color, as a button's text does.",
57
+ "accessibility": "- **A name every time:** an icon-only button's name is its text alternative\n ([WCAG 1.1.1](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html) and\n [4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html)), so the types require\n `aria-label` or `aria-labelledby`, and a development build warns about an empty or blank one. Name\n the action, not the picture.\n- **The name is the button's:** its `aria-label` or `aria-labelledby` names it over anything inside\n it, so a name on the `Icon` is ignored, and there's no need to give one.\n- **Tooltips describe:** a [`Tooltip`](https://bestax.io/docs/api/components/tooltip) around it points the button's\n `aria-describedby` at itself, so the name and the description stay separate. Give the tooltip\n something to add, not the name again.\n- **Keyboard and focus:** it's a native `<button>`, so <kbd>Enter</kbd> and <kbd>Space</kbd> press\n it, with Bulma's focus style. `isLoading` leaves it focusable and holds it still, as on `Button`:\n a click, <kbd>Enter</kbd> or <kbd>Space</kbd> does nothing, and it carries `aria-busy` and\n `aria-disabled` meanwhile. While it loads, Bulma takes away the shadow that shows focus, so it\n shows Bulma's focus outline instead when it has keyboard focus.\n- **Target size:** Bulma's smallest is 30 by 30 pixels, above the 24 by 24\n [WCAG 2.5.8](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html) asks for.\n- **Toggles** are [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton), which reports `aria-pressed`. Give an\n icon-only one an `aria-label` the same way.\n- **Forced colors:** a font icon, or an SVG drawn in `currentColor`, takes the system's text\n color, as a button's text does.",
58
58
  "related": [
59
59
  "Button",
60
60
  "Buttons",
@@ -162,7 +162,7 @@
162
162
  "name": "isLoading",
163
163
  "type": "boolean",
164
164
  "default": "false",
165
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
165
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
166
166
  "required": false,
167
167
  "inherited": true,
168
168
  "deprecated": false
@@ -46,7 +46,7 @@
46
46
  "code": "function example() {\n const defaultRef = React.useRef<HTMLButtonElement>(null);\n const anchorRef = React.useRef<HTMLAnchorElement>(null);\n const [tags, setTags] = React.useState<string>();\n\n return (\n <>\n <LinkButton ref={defaultRef}>Default</LinkButton>\n <LinkButton as=\"a\" href=\"#forwarded-ref\" ml=\"2\" ref={anchorRef}>\n As an anchor\n </LinkButton>\n <Button\n ml=\"2\"\n onClick={() =>\n setTags(\n `${defaultRef.current?.tagName} / ${anchorRef.current?.tagName}`\n )\n }\n >\n Read both from their refs\n </Button>\n <p>Rendered elements: {tags ?? '—'}</p>\n </>\n );\n}"
47
47
  }
48
48
  ],
49
- "accessibility": "- **Semantic HTML:** Renders a native `<button>` element, providing correct keyboard navigation, focus management, and screen reader announcements.\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Keyboard:** Fully keyboard accessible with Enter and Space activation.\n- **Replaces anti-patterns:** Use this instead of `<div onClick>` or `<span onClick>` for interactive elements that should not navigate.\n\n:::note\nIf your LinkButton has only an icon, use `aria-label` to provide accessible text.\n:::",
49
+ "accessibility": "- **Semantic HTML:** Renders a native `<button>` element, providing correct keyboard navigation, focus management, and screen reader announcements.\n- **States:** The `isDisabled` and `disabled` props ensure correct `aria-disabled` and `disabled` attributes.\n- **Loading:** while `isLoading` is set, the button carries `aria-busy=\"true\"` and `aria-disabled=\"true\"`, so a screen reader can tell it won't respond, and a click, <kbd>Enter</kbd> or <kbd>Space</kbd> does nothing: `onClick` doesn't run, a submit button doesn't submit its form, and a click on a link doesn't follow its `href`. It keeps focus, since `aria-disabled` doesn't take it away the way `disabled` would.\n- **Keyboard:** Fully keyboard accessible with Enter and Space activation.\n- **Replaces anti-patterns:** Use this instead of `<div onClick>` or `<span onClick>` for interactive elements that should not navigate.\n\n:::note\nIf your LinkButton has only an icon, use `aria-label` to provide accessible text.\n:::",
50
50
  "related": ["Button", "Buttons", "useBulmaClasses"],
51
51
  "storybook": "https://bestax.io/storybook/?path=/story/elements-linkbutton--default",
52
52
  "summary": "The `LinkButton` component renders a `<button>` that visually looks like text or a link.",
@@ -108,7 +108,7 @@
108
108
  "name": "isLoading",
109
109
  "type": "boolean",
110
110
  "default": "false",
111
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
111
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
112
112
  "required": false,
113
113
  "inherited": true,
114
114
  "deprecated": false
@@ -22,7 +22,7 @@
22
22
  "code": "<Panel>\n <Panel.Heading>Founding Documents</Panel.Heading>\n <Panel.Block active>\n <Panel.Icon name=\"file\" variant=\"solid\" />\n Declaration of Independence\n </Panel.Block>\n <Panel.Block>\n <Panel.Icon name=\"file\" variant=\"solid\" />\n Articles of Confederation\n </Panel.Block>\n <Panel.ButtonBlock>Reset all filters</Panel.ButtonBlock>\n</Panel>"
23
23
  }
24
24
  ],
25
- "accessibility": "- The root panel renders as a semantic `<nav>`, a navigation landmark, by default. For a panel that is not navigation, set `as` to `article`, `section`, `aside` or `div`, and give a `section` an accessible name (for example `aria-labelledby` pointing at the `Panel.Heading`'s `id`) if it should be a region.\n- Use headings, links, and buttons with appropriate labels for best accessibility.\n- The `Panel.Block` by default renders as an anchor `<a>`. Its props follow `as`: only an `a` takes the anchor attributes (`href`, `target`, `download` and the rest), and only a `label` takes `htmlFor` and `form`. A block on another tag drops them, and `rel`, at runtime too.\n- `Panel.Block active` sets `aria-current=\"page\"` on the element `as` renders, the `<a>` by default, so the current block isn't only a color. An `aria-current` you pass wins: a panel of sections on one page can say `\"location\"`, and `aria-current={false}` turns it off, as on an active `label` block with a checkbox.\n- A panel with no `color` keeps its heading readable on the dark scheme through bestax's `components/panel` partial, which `extras.css` and `bestax.css` include. Bulma's CSS alone writes that heading white on light gray.\n- A panel with a `color` draws the text of its active block and active tab, the active block's icon and the active tab's underline in that color at the lightness Bulma picks for the color's text on the page, through the same partial, so they read on both schemes. Black takes the title text's lightness, which is white on the dark scheme. Without the partial the text inherits the color's text helper Panel puts on the panel, and the icon and underline take the color's own lightness, which for a light or white panel is near white on white.\n\n:::note\nFor keyboard navigation, ensure interactive Panel blocks are focusable and provide clear visual states.\n:::",
25
+ "accessibility": "- The root panel renders as a semantic `<nav>`, a navigation landmark, by default. For a panel that is not navigation, set `as` to `article`, `section`, `aside` or `div`, and give a `section` an accessible name (for example `aria-labelledby` pointing at the `Panel.Heading`'s `id`) if it should be a region.\n- Use headings, links, and buttons with appropriate labels for best accessibility.\n- The `Panel.Block` by default renders as an anchor `<a>`. Its props follow `as`: only an `a` takes the anchor attributes (`href`, `target`, `download` and the rest), and only a `label` takes `htmlFor` and `form`. A block on another tag drops them, and `rel`, at runtime too.\n- `Panel.Block active` sets `aria-current=\"page\"` on the element `as` renders, the `<a>` by default, so the current block isn't only a color. An `aria-current` you pass wins: a panel of sections on one page can say `\"location\"`, and `aria-current={false}` turns it off, as on an active `label` block with a checkbox.\n- A panel with no `color` keeps its heading readable on the dark scheme through bestax's `components/panel` partial, which `extras.css` and `bestax.css` include. Bulma's CSS alone writes that heading white on light gray.\n- A panel with a `color` draws the text of its active block and active tab, the active block's icon and the active tab's underline in that color at the lightness Bulma picks for the color's text on the page, through the same partial, so they read on both schemes. Black takes the title text's lightness, which is white on the dark scheme. Without the partial the text inherits the color's text helper Panel puts on the panel, and the icon and underline take the color's own lightness, which for a light or white panel is near white on white.\n- **Forced colors:** Bulma marks the active tab and the active block with colors alone, which forced colors (Windows' contrast themes) replaces, so bestax's styles draw a bar in the system's highlight color there: along the bottom of the active tab, and down the start edge of the active block. The tab, the block and everything in them stay in the contrast theme's colors. It reads the `is-active` class, on a `Panel.Block` and on the tab links you write in `Panel.Tabs`. This comes from the same partial.\n\n:::note\nFor keyboard navigation, ensure interactive Panel blocks are focusable and provide clear visual states.\n:::",
26
26
  "related": ["Icon", "useBulmaClasses"],
27
27
  "storybook": "https://bestax.io/storybook/?path=/story/components-panel--revolutionary-war",
28
28
  "summary": "The `Panel` component implements Bulma's versatile panel block for React.",
@@ -285,7 +285,7 @@
285
285
  "name": "isLoading",
286
286
  "type": "boolean",
287
287
  "default": "false",
288
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
288
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
289
289
  "required": false,
290
290
  "inherited": true,
291
291
  "deprecated": false
@@ -30,7 +30,7 @@
30
30
  "code": "<Radio name=\"plan\" value=\"basic\" className=\"compact-radio\">\n Basic\n</Radio>"
31
31
  }
32
32
  ],
33
- "accessibility": "- Each `Radio` is rendered as a `<label>` wrapping an `<input type=\"radio\">` and the label text, for optimal accessibility.\n- Use the same `name` prop for a group of radios to ensure only one can be selected.\n- The circle is at least 24px across, the minimum size WCAG 2.2 sets for a target (2.5.8), whatever `--bulma-radio-size` says. [Circle Size](https://bestax.io/docs/api/form/radio#circle-size) shows how to make it smaller, and why to keep the label text inside the `Radio` when you do.\n- An unchecked radio shows only its ring, `--bulma-radio-border-color`. It defaults to `--bulma-text-weak`, which holds the 3:1 contrast WCAG asks of a control's boundary (non-text contrast) on Bulma's page and card surfaces in light and dark. Set a replacement on a class you pass through `className`, since `style` goes to the `<input>`, naming the label's class too (`.styled-radio.my-radio`) so load order can't undo it, and hold it to 3:1 as well.",
33
+ "accessibility": "- Each `Radio` is rendered as a `<label>` wrapping an `<input type=\"radio\">` and the label text, for optimal accessibility.\n- Radios that share a `name` are one group: only one can be checked, and the arrow keys move between them. Inside `Radios` they take the group's `name`, or one it generates when you give it none. Outside one, give each the same `name`.\n- The circle is at least 24px across, the minimum size WCAG 2.2 sets for a target (2.5.8), whatever `--bulma-radio-size` says. [Circle Size](https://bestax.io/docs/api/form/radio#circle-size) shows how to make it smaller, and why to keep the label text inside the `Radio` when you do.\n- An unchecked radio shows only its ring, `--bulma-radio-border-color`. It defaults to `--bulma-text-weak`, which holds the 3:1 contrast WCAG asks of a control's boundary (non-text contrast) on Bulma's page and card surfaces in light and dark. Set a replacement on a class you pass through `className`, since `style` goes to the `<input>`, naming the label's class too (`.styled-radio.my-radio`) so load order can't undo it, and hold it to 3:1 as well.",
34
34
  "related": ["Field", "Radios", "useBulmaClasses"],
35
35
  "storybook": "https://bestax.io/storybook/?path=/story/form-radio--mutually-exclusive",
36
36
  "summary": "The `Radio` component provides a Bulma-styled radio button input with flexible labels and helper classes.",
@@ -42,7 +42,7 @@
42
42
  "code": "<Radios name=\"plan\">\n <RadioCard className=\"compact-card\" value=\"starter\" title=\"Starter\" />\n <RadioCard className=\"compact-card\" value=\"pro\" title=\"Pro\" />\n</Radios>"
43
43
  }
44
44
  ],
45
- "accessibility": "- The card is a `<label>` around a native `<input type=\"radio\">`, so a click anywhere on it picks\n the radio and it sends its value with a form.\n- Cards that share a `name` are one group to the browser: Tab lands on the picked card, or the\n first, and the arrow keys move and pick, skipping disabled cards. Give `Radios` a `name`, or\n each card the same one; without it each card is a group of its own.\n- The radio is named by the title, through `aria-labelledby`, and described by the description,\n through `aria-describedby`. An `aria-label` or `aria-labelledby` you pass wins. Without a title,\n the card's own text names it, as a label's text does.\n- The children aren't read when the radio takes focus. Put what matters in `title` and\n `description`.\n- A link inside the card is its own Tab stop, and following it doesn't pick the card. A button or\n another input can't go inside a `<label>`.\n- Keyboard focus draws an outline around the whole card, in Bulma's focus color, whatever the\n card's color.\n- The selection never rests on color: the radio shows it, and the picked card's edge is twice as\n thick, with or without the radio.\n- Contrast: against the card, a picked edge in `primary` or `link` clears WCAG 1.4.11's 3:1 on a\n light page, and in every color on a dark one. `info`, `success`, `warning` and `danger` fall\n short on a light page, where the edge's width and the radio still show the selection.\n- In forced colors (Windows contrast themes), Bulma's card loses its shadow, so the edge is a\n real border there: the system's text color, `Highlight` and still thicker when picked, and gray\n when disabled. The radio takes system colors as `Radio`'s does, and the focus outline is\n `Highlight`.\n- The edge and the radio change without a transition under `prefers-reduced-motion: reduce`.",
45
+ "accessibility": "- The card is a `<label>` around a native `<input type=\"radio\">`, so a click anywhere on it picks\n the radio and it sends its value with a form.\n- Cards that share a `name` are one group to the browser: Tab lands on the picked card, or the\n first, and the arrow keys move and pick, skipping disabled cards. Inside `Radios` the cards\n share its `name`, or one it generates when you give it none. Outside one, give each card the\n same `name`; without it each card is a group of its own.\n- The radio is named by the title, through `aria-labelledby`, and described by the description,\n through `aria-describedby`. An `aria-label` or `aria-labelledby` you pass wins. Without a title,\n the card's own text names it, as a label's text does.\n- The children aren't read when the radio takes focus. Put what matters in `title` and\n `description`.\n- A link inside the card is its own Tab stop, and following it doesn't pick the card. A button or\n another input can't go inside a `<label>`.\n- Keyboard focus draws an outline around the whole card, in Bulma's focus color, whatever the\n card's color.\n- The selection never rests on color: the radio shows it, and the picked card's edge is twice as\n thick, with or without the radio.\n- Contrast: against the card, a picked edge in `primary` or `link` clears WCAG 1.4.11's 3:1 on a\n light page, and in every color on a dark one. `info`, `success`, `warning` and `danger` fall\n short on a light page, where the edge's width and the radio still show the selection.\n- In forced colors (Windows contrast themes), Bulma's card loses its shadow, so the edge is a\n real border there: the system's text color, `Highlight` and still thicker when picked, and gray\n when disabled. The radio takes system colors as `Radio`'s does, and the focus outline is\n `Highlight`.\n- The edge and the radio change without a transition under `prefers-reduced-motion: reduce`.",
46
46
  "related": [
47
47
  "Card",
48
48
  "CheckboxCard",
@@ -30,7 +30,7 @@
30
30
  "code": "<Radios name=\"color\" label=\"Favorite color\">\n <Radios.Radio value=\"red\">Red</Radios.Radio>\n <Radios.Radio value=\"green\">Green</Radios.Radio>\n</Radios>"
31
31
  }
32
32
  ],
33
- "accessibility": "- By default the group is rendered as a `<div class=\"radios\" role=\"radiogroup\">` containing labeled radio buttons.\n- The `label` prop names the whole group: the rendered `<label>` gets an id (yours via `labelProps.id`, or a generated one) and the group points at it with `aria-labelledby`.\n- Inside a labeled `Field`, that `Field`'s label names the group the same way.\n- With `as=\"fieldset\"`, the group is a native `<fieldset>` with `role=\"radiogroup\"`, named by its `<legend>` where it renders its own `Field`, or by an outer `Field`'s label through `aria-labelledby` inside one.\n- An `aria-label` or `aria-labelledby` you give the group wins over either label, whether that label sits on the Radios or on a `Field` around them.\n- Each child should be a `Radio` for proper labeling and accessibility.\n- Use the same `name` for all radios in a group to ensure mutual exclusivity.\n- The `message` describes the group through `aria-describedby`, after any ids you pass there, as the label names it. That holds with `as=\"fieldset\"` too.",
33
+ "accessibility": "- By default the group is rendered as a `<div class=\"radios\" role=\"radiogroup\">` containing labeled radio buttons.\n- The `label` prop names the whole group: the rendered `<label>` gets an id (yours via `labelProps.id`, or a generated one) and the group points at it with `aria-labelledby`.\n- Inside a labeled `Field`, that `Field`'s label names the group the same way.\n- With `as=\"fieldset\"`, the group is a native `<fieldset>` with `role=\"radiogroup\"`, named by its `<legend>` where it renders its own `Field`, or by an outer `Field`'s label through `aria-labelledby` inside one.\n- An `aria-label` or `aria-labelledby` you give the group wins over either label, whether that label sits on the Radios or on a `Field` around them.\n- Each child should be a `Radio` for proper labeling and accessibility.\n- The radios share the group's `name`, or one the group generates when you give it none, so the browser treats them as one group: one Tab stop, the arrow keys move and pick, and only one is checked. A checked radio is sent with a form under that name, so pass `name` to choose the key it's sent under.\n- The `message` describes the group through `aria-describedby`, after any ids you pass there, as the label names it. That holds with `as=\"fieldset\"` too.",
34
34
  "related": ["Field", "Radio"],
35
35
  "storybook": "https://bestax.io/storybook/?path=/story/form-radios--default",
36
36
  "summary": "The `Radios` component wraps multiple `Radio` components in a Bulma-styled group.",
@@ -74,7 +74,7 @@
74
74
  "name": "name",
75
75
  "type": "string",
76
76
  "default": null,
77
- "description": "Form field name shared by every Radio in the group (via context).",
77
+ "description": "Form field name shared by every Radio in the group (via context). Without one, the group generates a name, since a browser groups radios by their name: that's what makes them one Tab stop the arrow keys move through, with one checked at a time. A checked radio is then sent with a form under the generated name, so pass `name` to choose the key it's sent under. A generated name comes from React's `useId`, which repeats across React roots, so on a page with more than one, pass `name` or give each root an `identifierPrefix`. A `name` on a single Radio still wins for that Radio.",
78
78
  "required": false,
79
79
  "inherited": false,
80
80
  "deprecated": false
@@ -373,7 +373,7 @@
373
373
  "name": "isLoading",
374
374
  "type": "boolean",
375
375
  "default": "false",
376
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
376
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
377
377
  "required": false,
378
378
  "inherited": true,
379
379
  "deprecated": false
@@ -576,7 +576,7 @@
576
576
  "name": "isLoading",
577
577
  "type": "boolean",
578
578
  "default": "false",
579
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
579
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
580
580
  "required": false,
581
581
  "inherited": true,
582
582
  "deprecated": false
@@ -779,7 +779,7 @@
779
779
  "name": "isLoading",
780
780
  "type": "boolean",
781
781
  "default": "false",
782
- "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. It keeps focus, and shows Bulma's focus outline while it has it from the keyboard. Bulma alone hides only the label and takes away the shadow that shows a focused button, so the rest needs bestax's CSS loaded.",
782
+ "description": "Displays a loading spinner, with everything inside the button hidden behind it, in forced colors (Windows' contrast themes) too, and holds the button still: a click, Enter or Space does nothing, so `onClick` doesn't run, a submit button doesn't submit its form and a click on a link doesn't follow its `href`, until it's cleared. A custom `as` component gets that dropped click as its `onClick`, so it holds still as far as it acts through it. Set it while an action is in progress, so nobody sends it twice. The button carries `aria-busy` and `aria-disabled` meanwhile, so a screen reader can tell it won't respond, and stays focusable, so focus isn't lost, with Bulma's focus outline showing it from the keyboard. Under `prefers-reduced-motion: reduce` the spinner stops and stays drawn. Bulma alone stops only the pointer, hides only the label and takes away the shadow that shows a focused button, so the rest of the look needs bestax's CSS loaded.",
783
783
  "required": false,
784
784
  "inherited": true,
785
785
  "deprecated": false
@@ -120,7 +120,10 @@ Field/Control/message props. `TextArea` adds `rows` and `hasFixedSize`.
120
120
  checked list. It changes the look and the announcement, not the value: `checked` stays the
121
121
  value, so set both from the list.
122
122
  - `Checkboxes` — group wrapper managing an **array** value.
123
- - `Radios` — group wrapper managing a **single** selected value.
123
+ - `Radios` — group wrapper managing a **single** selected value. Its radios share its `name`, or
124
+ one it generates when you give none, which is what makes them one group to the browser (one Tab
125
+ stop, the arrow keys, one checked). A checked radio is sent with a form under that name, so pass
126
+ `name` to choose the key.
124
127
  - Both take `as="fieldset"`: their own `Field` renders as a native `<fieldset>` and the `label` as
125
128
  its `<legend>`, in the label column when `horizontal`, naming the group with no ids. Inside an
126
129
  outer `Field` the group element itself is the `<fieldset>`, named by that `Field`'s label.
@@ -25,6 +25,11 @@ otherwise, and the prop takes the matching suffix: `is-6-tablet` → `sizeTablet
25
25
  element did not have. On any tag but `<button>`, bestax takes the element's `as`
26
26
  (`<a className="button">` → `<Button as="a">`).
27
27
 
28
+ `is-loading` becomes `isLoading`, so a converted loading button gains what bestax's loading
29
+ `Button` does: it writes `aria-busy="true"` and `aria-disabled="true"`, and drops a click while it
30
+ loads, from the keyboard too, where Bulma's spinner stops only the pointer. Its `onClick` doesn't
31
+ run then, and neither does the form submit, the reset or the link it would have triggered.
32
+
28
33
  ### `.buttons` → `Buttons`, `.tags` → `Tags`
29
34
 
30
35
  | Classes | Prop |
@@ -365,6 +365,14 @@ move it to a component of its own:
365
365
  (`<Image size="128x128" mx="auto">`), which centers it and does nothing else `.container`
366
366
  does. Otherwise wrap the element in a `Container`. Either way, check the layout.
367
367
 
368
+ ## A table it folded with no name: `name:<Target>`
369
+
370
+ A `.table-container` folded into `Table isResponsive` around a table that writes no `aria-label`
371
+ and no `aria-labelledby`, and spreads no props that could. While the table overflows, `Table isResponsive` makes `.table-container` a region
372
+ you can tab to, named by those two alone, and a development build warns when it has neither. Give
373
+ the `Table` an `aria-label`, or point `aria-labelledby` at a heading, or at its `<caption>`'s `id`
374
+ when it has one, which names both the table and the region.
375
+
368
376
  ## A family it leaves as markup: `family:<class>`
369
377
 
370
378
  The bestax component renders parts of its own, or adds attributes, so a one-element-at-a-time
@@ -43,35 +43,35 @@ codemod converts it; **Flagged** = it leaves a `TODO(bestax-migrate)` comment (s
43
43
 
44
44
  ## Compound sub-components
45
45
 
46
- | RBC | bestax |
47
- | ----------------------------------------------------------- | ------------------------------------------------------------------------ |
48
- | `Breadcrumb.Item` | plain `<li><a href=…>` (`active` → `is-active`), or the `renderAs` tag |
49
- | `Button.Group` | `Buttons` (`align="right"`→`isRight`); unknown or dynamic `size` flagged |
50
- | `Card.Header` / `.Title` / `.Icon` | `Card.Header` / `.Header.Title` / `.Header.Icon` |
51
- | `Card.Image` | `Card.Image` wrapping an inner `<Image>` |
52
- | `Card.Content` | `Card.Content` |
53
- | `Card.Footer` / `Card.Footer.Item` | `Card.Footer` / `Card.FooterItem` |
54
- | `Columns.Column` | `Column` (flat import) |
55
- | `Dropdown.Item` / `.Divider` | `Dropdown.Item` / `Dropdown.Divider` |
56
- | `Hero.Header` / `.Body` / `.Footer` | `Hero.Head` / `Hero.Body` / `Hero.Foot` |
57
- | `Icon.Text` | `IconText` |
58
- | `Level.Side align` / `Level.Item` | `Level.Left` or `Level.Right` / `Level.Item` |
59
- | `Media.Item align` | `MediaLeft` / `MediaContent` / `MediaRight` (flat) |
60
- | `Menu.List` (+ `title`) | `Menu.List` (+ a `Menu.Label` sibling) |
61
- | `Menu.List.Item` | `Menu.Item` |
62
- | `Message.Header` / `.Body` | `Message.Header` / `Message.Body` |
63
- | `Modal.Content` | `Modal.Content` |
64
- | `Modal.Card` `.Header`/`.Body`/`.Footer`/`.Title` | `Modal.Card` `.Head`/`.Body`/`.Foot`/`.Title` |
65
- | `Navbar.Brand`/`.Burger`/`.Menu`/`.Item`/`.Link`/`.Divider` | same names |
66
- | `Navbar.Container align` | `Navbar.Start` / `Navbar.End` |
67
- | `Navbar.Item` wrapping a dropdown | `Navbar.Dropdown` (container) |
68
- | `Navbar.Dropdown` (the menu) | `Navbar.DropdownMenu` |
69
- | `Panel.Header` | `Panel.Heading` |
70
- | `Panel.Tabs` / `Panel.Tabs.Tab` | `Panel.Tabs` / plain `<a>` children |
71
- | `Panel.Block` / `Panel.Icon` | `Panel.Block` / `Panel.Icon` (icon child → `name`) |
72
- | `Table.Container` | `isResponsive` on the child `Table` (or `<div class="table-container">`) |
73
- | `Tabs.Tab` | `Tabs.Item` (inside a generated plain `<ul>`) |
74
- | `Tag.Group` | `Tags` (`gapless` → `hasAddons`) |
46
+ | RBC | bestax |
47
+ | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
48
+ | `Breadcrumb.Item` | plain `<li><a href=…>` (`active` → `is-active`), or the `renderAs` tag |
49
+ | `Button.Group` | `Buttons` (`align="right"`→`isRight`); unknown or dynamic `size` flagged |
50
+ | `Card.Header` / `.Title` / `.Icon` | `Card.Header` / `.Header.Title` / `.Header.Icon` |
51
+ | `Card.Image` | `Card.Image` wrapping an inner `<Image>` |
52
+ | `Card.Content` | `Card.Content` |
53
+ | `Card.Footer` / `Card.Footer.Item` | `Card.Footer` / `Card.FooterItem` |
54
+ | `Columns.Column` | `Column` (flat import) |
55
+ | `Dropdown.Item` / `.Divider` | `Dropdown.Item` / `Dropdown.Divider` |
56
+ | `Hero.Header` / `.Body` / `.Footer` | `Hero.Head` / `Hero.Body` / `Hero.Foot` |
57
+ | `Icon.Text` | `IconText` |
58
+ | `Level.Side align` / `Level.Item` | `Level.Left` or `Level.Right` / `Level.Item` |
59
+ | `Media.Item align` | `MediaLeft` / `MediaContent` / `MediaRight` (flat) |
60
+ | `Menu.List` (+ `title`) | `Menu.List` (+ a `Menu.Label` sibling) |
61
+ | `Menu.List.Item` | `Menu.Item` |
62
+ | `Message.Header` / `.Body` | `Message.Header` / `Message.Body` |
63
+ | `Modal.Content` | `Modal.Content` |
64
+ | `Modal.Card` `.Header`/`.Body`/`.Footer`/`.Title` | `Modal.Card` `.Head`/`.Body`/`.Foot`/`.Title` |
65
+ | `Navbar.Brand`/`.Burger`/`.Menu`/`.Item`/`.Link`/`.Divider` | same names |
66
+ | `Navbar.Container align` | `Navbar.Start` / `Navbar.End` |
67
+ | `Navbar.Item` wrapping a dropdown | `Navbar.Dropdown` (container) |
68
+ | `Navbar.Dropdown` (the menu) | `Navbar.DropdownMenu` |
69
+ | `Panel.Header` | `Panel.Heading` |
70
+ | `Panel.Tabs` / `Panel.Tabs.Tab` | `Panel.Tabs` / plain `<a>` children |
71
+ | `Panel.Block` / `Panel.Icon` | `Panel.Block` / `Panel.Icon` (icon child → `name`) |
72
+ | `Table.Container` | `isResponsive` on the child `Table`, which takes the container's `aria-label` or `aria-labelledby` unless it has its own (or `<div class="table-container">`) |
73
+ | `Tabs.Tab` | `Tabs.Item` (inside a generated plain `<ul>`) |
74
+ | `Tag.Group` | `Tags` (`gapless` → `hasAddons`) |
75
75
 
76
76
  ## Form namespace → flat imports
77
77
 
@@ -233,6 +233,20 @@ a `textSize` from `'1'` to `'7'`.
233
233
  The same TODO marks a `Heading` that sets `size` and `textSize` both: drop `size` and let
234
234
  `textSize` set the font size.
235
235
 
236
+ ## `name:Table` — a responsive table with no name
237
+
238
+ `Table.Container` folded into `isResponsive` on a `Table` with no `aria-label` and no
239
+ `aria-labelledby`. While the table overflows, `Table isResponsive` makes its container a region you
240
+ can tab to, named by those two alone, and a development build warns when it has neither. Look
241
+ for a name the container carried in a TODO beside this one (`prop:aria-label`, or `prop:spread`
242
+ for one in a spread). Otherwise give the `Table` an `aria-label`, or point `aria-labelledby` at a
243
+ heading, or at its `<caption>`'s `id` when it has one.
244
+
245
+ The container's `role` and `tabIndex` go with it (`prop:role`, `prop:tabIndex`): `Table isResponsive`
246
+ writes them on its container itself while the table overflows. When the `Table` already names
247
+ itself, with an attribute of its own or a `<caption>`, the container's name goes with the container
248
+ too (`prop:aria-label`, `prop:aria-labelledby`), so check that the `Table`'s is the one you want.
249
+
236
250
  ## `domRef`
237
251
 
238
252
  bestax components don't take `domRef`, but many forward a plain `ref` — the form controls, plus
@@ -175,7 +175,9 @@ Notes:
175
175
 
176
176
  - The `panel` partial **extends** stock Bulma panel (it keeps the heading of a panel with no
177
177
  `color` readable on the dark scheme, where Bulma writes it white on light gray, and a colored
178
- panel's active block and tab, their text, icon and underline, readable on both schemes), so an app using `Panel` needs both,
178
+ panel's active block and tab, their text, icon and underline, readable on both schemes, and
179
+ keeps the active block and tab marked in forced colors, where Bulma's colors for them are
180
+ replaced), so an app using `Panel` needs both,
179
181
  in either order:
180
182
 
181
183
  ```scss
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.69",
3
+ "version": "1.18.70",
4
4
  "mcpName": "io.github.allxsmith/bestax-mcp",
5
5
  "description": "MCP server for @allxsmith/bestax-bulma — component props, examples, CSS variables and agent skills, served offline from a version-pinned index",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@modelcontextprotocol/sdk": "^1.32.2",
44
44
  "zod": "^4.6.7",
45
- "@allxsmith/bestax-bulma": "^5.73.9"
45
+ "@allxsmith/bestax-bulma": "^5.73.10"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",