bestax-mcp 1.18.94 → 1.18.95

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.
@@ -8768,6 +8768,10 @@
8768
8768
  "group": "typography",
8769
8769
  "write": { "prop": "textTransform", "value": "italic" }
8770
8770
  },
8771
+ "is-underlined": {
8772
+ "group": "typography",
8773
+ "write": { "prop": "textTransform", "value": "underlined" }
8774
+ },
8771
8775
  "has-text-weight-light": {
8772
8776
  "group": "typography",
8773
8777
  "write": { "prop": "textWeight", "value": "light" }
@@ -9763,7 +9767,7 @@
9763
9767
  },
9764
9768
  {
9765
9769
  "why": "a modifier of markup this source leaves alone, or one bestax has no prop for",
9766
- "match": "^(?:has-addons-.+|has-dropdown(?:-up)?|has-fixed-size|has-icons-(?:left|right)|has-name|has-(?:spaced-)?navbar-fixed-(?:top|bottom)(?:-desktop)?|has-shadow|is-arrowless|is-boxed|is-center|is-current|is-delete|is-disabled|is-empty|is-expanded|is-fixed-(?:top|bottom)(?:-desktop)?|is-flexible|is-grouped(?:-.+)?|is-halfheight|is-horizontal|is-left|is-(?:lower|upper)-(?:alpha|roman)|is-responsive|is-selected|is-tab|is-toggle(?:-rounded)?|is-transparent|is-underlined|is-up|is-wrapped)$"
9770
+ "match": "^(?:has-addons-.+|has-dropdown(?:-up)?|has-fixed-size|has-icons-(?:left|right)|has-name|has-(?:spaced-)?navbar-fixed-(?:top|bottom)(?:-desktop)?|has-shadow|is-arrowless|is-boxed|is-center|is-current|is-delete|is-disabled|is-empty|is-expanded|is-fixed-(?:top|bottom)(?:-desktop)?|is-flexible|is-grouped(?:-.+)?|is-halfheight|is-horizontal|is-left|is-(?:lower|upper)-(?:alpha|roman)|is-responsive|is-selected|is-tab|is-toggle(?:-rounded)?|is-transparent|is-up|is-wrapped)$"
9767
9771
  }
9768
9772
  ],
9769
9773
  "vocabulary": [
package/data/catalog.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 3,
3
3
  "generatedFrom": {
4
4
  "package": "@allxsmith/bestax-bulma",
5
- "version": "5.79.5"
5
+ "version": "5.80.0"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -54,7 +54,7 @@
54
54
  "code": "<Calendar\n aria-label=\"Choisir un jour\"\n locale=\"fr-FR\"\n firstDayOfWeek={1}\n labels={{ prevMonth: 'Mois précédent', nextMonth: 'Mois suivant' }}\n/>"
55
55
  }
56
56
  ],
57
- "accessibility": "- The root is a `<div>`. An `aria-label` or `aria-labelledby` on it names the Calendar and makes it a `role=\"group\"`, and so does a labeled `Field` around it, whose label names it when you give it no name of your own.\n- Each month is a `role=\"grid\"` named by its month and year, its weeks `role=\"row\"`s and its days `button`s with `role=\"gridcell\"`. Picked days are `aria-selected`, and today has `aria-current=\"date\"`.\n- A day the grid leaves blank, a nearby month's day with `nearbyMonthDays` off or one whose month is on show beside it, draws nothing. A week left with no day on show keeps its place, so the grid keeps its height and months side by side line up, and is hidden from assistive technology rather than read as an empty row.\n- In forced colors (Windows' contrast themes), the fill that marks a picked day, month or year, a range's band, and the year the header's year list is on, is replaced, so bestax's styles draw each of those cells, and every day of a picked range, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. What `dayTemplate` draws in them takes the same colors, unless it sets its own. While a range's end is still being picked, only its start is filled, and the day it would end on keeps its dashed edge.\n- In forced colors, a disabled day, month or year, and a disabled month or arrow button in the header, draws in the system's color for a disabled control, at full strength rather than faded.\n- Each day is named by its full date in the Calendar's locale, such as \"Friday, November 20, 2026\", which `getDayLabel` gets as its `label`. The weekday row is hidden from assistive technology, since every day's name carries its weekday, so moving down a week reads the whole date rather than \"27\". On a server-rendered page the full names arrive once the page hydrates, and until then a day is named by its number and what `dayTemplate` draws.\n- What `dayTemplate` draws isn't read, since a day's name is its date: pair it with `getDayLabel`. On a day it draws text for, start the name with the day's number and that text, in the words the day shows.\n- A range's ends are described as \"Start date\" and \"End date\", the day a pending range would end on as \"Choose as end date\", and a polite live region states the range in words as it's picked, as on `DateRangeInput`.\n- `readOnly` puts `aria-readonly=\"true\"` on the grids and keeps the tab stop and the keys. `disabled` puts `aria-disabled=\"true\"` on them and disables every button.\n- `loading` puts `aria-busy=\"true\"` on the grids and keeps the grid and its focus where they were.\n- A roving `tabindex` keeps one day focusable in the whole Calendar, whatever `monthsToShow` is. When the focused day is disabled, the tab stop moves to the nearest enabled day of the months on show.\n- Closing the year list, with a pick or `Escape`, puts focus back on the grid's tab stop.\n- On a right-to-left page the previous-month chevron points right.",
57
+ "accessibility": "- The root is a `<div>`. An `aria-label` or `aria-labelledby` on it names the Calendar and makes it a `role=\"group\"`, and so does a labeled `Field` around it, whose label names it when you give it no name of your own.\n- Each month is a `role=\"grid\"` named by its month and year, its weeks `role=\"row\"`s and the days on show `button`s with `role=\"gridcell\"`. Picked days are `aria-selected`, and today has `aria-current=\"date\"`.\n- A day the grid leaves blank, a nearby month's day with `nearbyMonthDays` off or one whose month is on show beside it, draws nothing. A week left with no day on show keeps its place, so the grid keeps its height and months side by side line up, and is hidden from assistive technology rather than read as an empty row. A blank day is still a cell of its week, an empty one with no name, so the days after it keep their weekday's column.\n- In forced colors (Windows' contrast themes), the fill that marks a picked day, month or year, a range's band, and the year the header's year list is on, is replaced, so bestax's styles draw each of those cells, and every day of a picked range, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. What `dayTemplate` draws in them takes the same colors, unless it sets its own. While a range's end is still being picked, only its start is filled, and the day it would end on keeps its dashed edge.\n- In forced colors, a disabled day, month or year, and a disabled month or arrow button in the header, draws in the system's color for a disabled control, at full strength rather than faded.\n- Each day is named by its full date in the Calendar's locale, such as \"Friday, November 20, 2026\", which `getDayLabel` gets as its `label`. The weekday row is hidden from assistive technology, since every day's name carries its weekday, so moving down a week reads the whole date rather than \"27\". On a server-rendered page the full names arrive once the page hydrates, and until then a day is named by its number and what `dayTemplate` draws.\n- What `dayTemplate` draws isn't read, since a day's name is its date: pair it with `getDayLabel`. On a day it draws text for, start the name with the day's number and that text, in the words the day shows.\n- A range's ends are described as \"Start date\" and \"End date\", the day a pending range would end on as \"Choose as end date\", and a polite live region states the range in words as it's picked, as on `DateRangeInput`.\n- `readOnly` puts `aria-readonly=\"true\"` on the grids and keeps the tab stop and the keys. `disabled` puts `aria-disabled=\"true\"` on them and disables every button.\n- `loading` puts `aria-busy=\"true\"` on the grids and keeps the grid and its focus where they were.\n- A roving `tabindex` keeps one day focusable in the whole Calendar, whatever `monthsToShow` is. When the focused day is disabled, the tab stop moves to the nearest enabled day of the months on show.\n- Closing the year list, with a pick or `Escape`, puts focus back on the grid's tab stop.\n- On a right-to-left page the previous-month chevron points right.",
58
58
  "related": ["DateInput", "DateRangeInput", "Fieldset"],
59
59
  "storybook": "https://bestax.io/storybook/?path=/story/form-calendar",
60
60
  "summary": "The `Calendar` component shows months on the page, not behind an input, where a click picks a day or a range and each day can show what's on it. It's the grid the date pickers draw, with no `Field`, label or hidden input: a form that posts a date uses `DateInput inline` instead.",
@@ -178,7 +178,7 @@
178
178
  "code": "function example() {\n return (\n <Field\n horizontal\n label=\"Date\"\n labelProps={{ htmlFor: 'date-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"calendar-alt\">\n <DateInput id=\"date-field-control\" placeholder=\"YYYY-MM-DD\" />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
179
179
  }
180
180
  ],
181
- "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date, month or year.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its grid or year list inside keep their own names.\n- Closing the popover with `Escape` or a pick returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Dismissing without a pick commits nothing: an empty field stays empty, and leaving afterwards commits only what you typed.\n- Calendar uses `role=\"grid\"` with cells as `role=\"gridcell\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- With `nearbyMonthDays` off, the calendar leaves a nearby month's days blank, and a week with no day on show keeps its place, so the grid keeps its height, and is hidden from assistive technology rather than read as an empty row. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today's day, month and year get it once the page hydrates, so the reader's clock decides which.\n- In forced colors (Windows' contrast themes), the fill that marks the selected day, month or year, and the year the header's year list is on, is replaced, so bestax's styles draw it in the system's highlight colors there, or in the system's color for a disabled control when it's disabled.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid or year list and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` on the grid or year list it picks from, and keeps its tab stop and keys.\n- Roving `tabindex` keeps a single grid cell focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- The month grid is a `role=\"grid\"` of `role=\"row\"`s, labelled by the year in its header. Each month cell carries the full month name as its accessible name, `aria-current=\"date\"` for this month and `aria-disabled` for a month with no selectable day.\n- The year list is a `role=\"listbox\"`, named by the `chooseYear` label where it is the selection surface and by the heading that opens it otherwise. As the selection surface its options take `aria-selected` from the value's year rather than from focus, which roves through the list. When the focused year is disabled, the nearest enabled year takes the tab stop, so `Tab` still reaches the list.\n- The launcher and popover are named \"Choose month\" or \"Choose year\" to match the granularity; override them, and the month grid's \"Previous year\" / \"Next year\" buttons, through `labels` (`chooseMonth`, `chooseYear`, `prevYear`, `nextYear`).\n- Honors `prefers-reduced-motion` (skip popover fade-in).\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right. The month names follow the page.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `DateInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- A date of birth takes `autoComplete=\"bday\"`, which goes on the field, so the browser and assistive technology know what it asks for (WCAG 1.3.5). Without a token the text field turns autocomplete off, since the browser's own suggestions would cover the calendar. A date that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked day rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
181
+ "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date, month or year.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its grid or year list inside keep their own names.\n- Closing the popover with `Escape` or a pick returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Dismissing without a pick commits nothing: an empty field stays empty, and leaving afterwards commits only what you typed.\n- Calendar uses `role=\"grid\"` with cells as `role=\"gridcell\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- With `nearbyMonthDays` off, the calendar leaves a nearby month's days blank, and a week with no day on show keeps its place, so the grid keeps its height, and is hidden from assistive technology rather than read as an empty row. A blank day is still a cell of its week, an empty one with no name, so the days after it keep their weekday's column. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Days expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today's day, month and year get it once the page hydrates, so the reader's clock decides which.\n- In forced colors (Windows' contrast themes), the fill that marks the selected day, month or year, and the year the header's year list is on, is replaced, so bestax's styles draw it in the system's highlight colors there, or in the system's color for a disabled control when it's disabled.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid or year list and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` on the grid or year list it picks from, and keeps its tab stop and keys.\n- Roving `tabindex` keeps a single grid cell focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- The month grid is a `role=\"grid\"` of `role=\"row\"`s, labelled by the year in its header. Each month cell carries the full month name as its accessible name, `aria-current=\"date\"` for this month and `aria-disabled` for a month with no selectable day.\n- The year list is a `role=\"listbox\"`, named by the `chooseYear` label where it is the selection surface and by the heading that opens it otherwise. As the selection surface its options take `aria-selected` from the value's year rather than from focus, which roves through the list. When the focused year is disabled, the nearest enabled year takes the tab stop, so `Tab` still reaches the list.\n- The launcher and popover are named \"Choose month\" or \"Choose year\" to match the granularity; override them, and the month grid's \"Previous year\" / \"Next year\" buttons, through `labels` (`chooseMonth`, `chooseYear`, `prevYear`, `nextYear`).\n- Honors `prefers-reduced-motion` (skip popover fade-in).\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right. The month names follow the page.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `DateInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- A date of birth takes `autoComplete=\"bday\"`, which goes on the field, so the browser and assistive technology know what it asks for (WCAG 1.3.5). Without a token the text field turns autocomplete off, since the browser's own suggestions would cover the calendar. A date that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked day rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
182
182
  "related": ["DateTimeInput", "Input", "TimeInput"],
183
183
  "storybook": "https://bestax.io/storybook/?path=/story/form-dateinput",
184
184
  "summary": "The `DateInput` component is a form input that opens a popover calendar for date selection.",
@@ -50,7 +50,7 @@
50
50
  "code": "<Field label=\"Leave\">\n <Control iconLeftName=\"calendar-alt\">\n <DateRangeInput />\n </Control>\n</Field>"
51
51
  }
52
52
  ],
53
- "accessibility": "- The root is a `role=\"group\"` named by `label` through `aria-labelledby`, since the label names two inputs rather than one. Inside a labeled `Field`, that `Field`'s label names the group the same way, whether the `Field` holds `DateRangeInput` or a `DateRangeInputBase` you composed in a `Control` yourself, `inline` or not. An `aria-label` or `aria-labelledby` you give the group wins over either label.\n- Each input is a `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, and its own name: \"Start date\" or \"End date\", from the `labels` keys `rangeStart` and `rangeEnd`. The separator between them is hidden from assistive technology.\n- `aria-invalid` and `aria-errormessage` go on both inputs, marking the range as a whole, while the other attributes you pass go on the group, so a screen reader hears an input is invalid when it takes focus. An `inline` picker has no input, and they stay on its group.\n- The popover is a `role=\"dialog\"` named \"Choose date range\" (`labels.chooseDateRange`). Opening it puts focus on the calendar's focused day, and closing it returns focus to the input you were last in, or to the start input.\n- With `monthsToShow`, each month is a grid of its own, named by its month and year, and the calendar keeps one tab stop across them.\n- A day the grid leaves blank, a nearby month's day with `nearbyMonthDays` off or one whose month is on show beside it, draws nothing. A week left with no day on show keeps its place, so the grid keeps its height and months side by side line up, and is hidden from assistive technology rather than read as an empty row.\n- The day grid is `aria-multiselectable`, and its days sit in a `role=\"row\"` per week. Every day of the range is `aria-selected`, both ends included. While the end is still being picked, only the start is: the preview is not a selection.\n- In forced colors (Windows' contrast themes), the fill and the band that mark the range are replaced, so bestax's styles draw every day of a picked range, both ends included, and the year the header's year list is on, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. While the end is still being picked, only the start is filled, and the day the range would end on keeps its dashed edge.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, keeps its tab stop and keys, and picks nothing.\n- The start and end days are described as \"Start date\" and \"End date\", so moving onto either says which it is. While the end is still being picked, the day the range would end on is described as \"Choose as end date\" (`labels.rangePreviewEnd`).\n- A polite live region in the calendar states the range in words, such as \"Start date: June 10, 2024, End date: June 13, 2024\", and announces each pick. The grid points at it too, so moving into the grid reads the current range.\n- Everything else is the calendar `DateInput` uses: a roving `tabindex`, weekday column headers named in full (or by your `dayNames`), `aria-disabled` on disabled days, `aria-current=\"date\"` on today, and focus back on the grid as the year list closes.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the group through `aria-describedby`, after any ids you pass there, as the label names it.",
53
+ "accessibility": "- The root is a `role=\"group\"` named by `label` through `aria-labelledby`, since the label names two inputs rather than one. Inside a labeled `Field`, that `Field`'s label names the group the same way, whether the `Field` holds `DateRangeInput` or a `DateRangeInputBase` you composed in a `Control` yourself, `inline` or not. An `aria-label` or `aria-labelledby` you give the group wins over either label.\n- Each input is a `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, and its own name: \"Start date\" or \"End date\", from the `labels` keys `rangeStart` and `rangeEnd`. The separator between them is hidden from assistive technology.\n- `aria-invalid` and `aria-errormessage` go on both inputs, marking the range as a whole, while the other attributes you pass go on the group, so a screen reader hears an input is invalid when it takes focus. An `inline` picker has no input, and they stay on its group.\n- The popover is a `role=\"dialog\"` named \"Choose date range\" (`labels.chooseDateRange`). Opening it puts focus on the calendar's focused day, and closing it returns focus to the input you were last in, or to the start input.\n- With `monthsToShow`, each month is a grid of its own, named by its month and year, and the calendar keeps one tab stop across them.\n- A day the grid leaves blank, a nearby month's day with `nearbyMonthDays` off or one whose month is on show beside it, draws nothing. A week left with no day on show keeps its place, so the grid keeps its height and months side by side line up, and is hidden from assistive technology rather than read as an empty row. A blank day is still a cell of its week, an empty one with no name, so the days after it keep their weekday's column.\n- The day grid is `aria-multiselectable`, and its days sit in a `role=\"row\"` per week. Every day of the range is `aria-selected`, both ends included. While the end is still being picked, only the start is: the preview is not a selection.\n- In forced colors (Windows' contrast themes), the fill and the band that mark the range are replaced, so bestax's styles draw every day of a picked range, both ends included, and the year the header's year list is on, in the system's highlight colors there, or in the system's color for a disabled control when it's disabled. While the end is still being picked, only the start is filled, and the day the range would end on keeps its dashed edge.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- A `disabled` inline calendar puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, keeps its tab stop and keys, and picks nothing.\n- The start and end days are described as \"Start date\" and \"End date\", so moving onto either says which it is. While the end is still being picked, the day the range would end on is described as \"Choose as end date\" (`labels.rangePreviewEnd`).\n- A polite live region in the calendar states the range in words, such as \"Start date: June 10, 2024, End date: June 13, 2024\", and announces each pick. The grid points at it too, so moving into the grid reads the current range.\n- Everything else is the calendar `DateInput` uses: a roving `tabindex`, weekday column headers named in full (or by your `dayNames`), `aria-disabled` on disabled days, `aria-current=\"date\"` on today, and focus back on the grid as the year list closes.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start, and the previous-month chevron points right.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the group through `aria-describedby`, after any ids you pass there, as the label names it.",
54
54
  "related": ["DateInput", "DateTimeInput", "Field"],
55
55
  "storybook": "https://bestax.io/storybook/?path=/story/form-daterangeinput",
56
56
  "summary": "The `DateRangeInput` component is a form input for a start and end date, picked from one popover calendar or typed into two segmented inputs.",
@@ -170,7 +170,7 @@
170
170
  "code": "<DateTimeInput label=\"Input only\" popover={false} defaultValue={new Date()} />"
171
171
  }
172
172
  ],
173
- "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its grid and its wheels inside keep their own names.\n- Closing the popover with `Escape`, the ✓ button or `Enter` on a time wheel returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Closing it commits nothing by itself: an empty field stays empty, and leaving afterwards commits only what you typed, so seconds the display leaves out are kept.\n- Calendar uses `role=\"grid\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- With `nearbyMonthDays` off, the calendar leaves a nearby month's days blank, and a week with no day on show keeps its place, so the grid keeps its height, and is hidden from assistive technology rather than read as an empty row. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Cells expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today gets it once the page hydrates, so the reader's clock decides which day.\n- In forced colors (Windows' contrast themes), the fill that marks the selected day, and the year the header's year list is on, is replaced, so bestax's styles draw it in the system's highlight colors there, or in the system's color for a disabled control when it's disabled.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, a disabled Time, Reset or ✓ button in the footer, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- Roving `tabindex` keeps a single day focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- A `disabled` inline panel puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, and keeps its tab stop and keys.\n- Each time wheel uses `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the wheel shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those wheels, reading `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- In forced colors (Windows' contrast themes), the time wheels' band is drawn in the system's highlight color, since its fill is replaced there, and the values keep the system's text color.\n- The footer's confirm button exposes an accessible label (`Done`); the Reset button reverts your edits to the value the popover opened with, or on an `inline` picker, to the one described under [Inline](https://bestax.io/docs/api/form/datetime/datetimeinput#inline).\n- Tab order walks from the calendar to the footer (Reset / ✓), and from the time wheels to the footer while they are open.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start. The time wheels keep `dir=\"ltr\"`.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `DateTimeInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- An `autoComplete` you give goes on the field. Without one the text field turns autocomplete off, since the browser's own suggestions would cover the panel. A date and time that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked day or time rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
173
+ "accessibility": "- Trigger uses `role=\"combobox\"` with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls`.\n- Popover panel has `role=\"dialog\"` with an accessible name. Opening it puts focus on the focused date.\n- An `inline` picker has no input for its `label` to name, so its root is a `role=\"group\"` the `label` names through `aria-labelledby` and its `message` describes. A labeled `Field` around it names it the same way, unless the `Field` is `grouped` or `hasAddons`, or a label is wired by hand with `labelProps.htmlFor`. An `aria-label` or `aria-labelledby` you give it names it instead. With no name it stays a plain `div`, and its grid and its wheels inside keep their own names.\n- Closing the popover with `Escape`, the ✓ button or `Enter` on a time wheel returns focus to the input, whether the input or the launcher opened it. Under `openOnFocus` that returning focus leaves the popover closed; focusing or clicking the input again opens it. Closing it commits nothing by itself: an empty field stays empty, and leaving afterwards commits only what you typed, so seconds the display leaves out are kept.\n- Calendar uses `role=\"grid\"`. Its first row holds the weekday names as `role=\"columnheader\"`s, each named by the full weekday in the picker's locale, so a screen reader can name the weekday as focus moves to another column. A server-rendered calendar adds those full names once the page hydrates, and with `dayNames` the columns are named by the names you give instead. Each day keeps its number as its name.\n- With `nearbyMonthDays` off, the calendar leaves a nearby month's days blank, and a week with no day on show keeps its place, so the grid keeps its height, and is hidden from assistive technology rather than read as an empty row. A blank day is still a cell of its week, an empty one with no name, so the days after it keep their weekday's column. The device's own picker, which `mobileNative` opens on a touch device, draws its own grid.\n- Days expose `aria-selected`, `aria-disabled`, and `aria-current=\"date\"` for today. On a server-rendered page, today gets it once the page hydrates, so the reader's clock decides which day.\n- In forced colors (Windows' contrast themes), the fill that marks the selected day, and the year the header's year list is on, is replaced, so bestax's styles draw it in the system's highlight colors there, or in the system's color for a disabled control when it's disabled.\n- In forced colors, a disabled day, month or year, a disabled month or arrow button in the header, a disabled Time, Reset or ✓ button in the footer, and a disabled launcher draw in the system's color for a disabled control, at full strength rather than faded.\n- Roving `tabindex` keeps a single day focusable at a time, and focus moves with it, inline as in the popover. When the focused date is disabled, that cell is the nearest enabled day of the month.\n- Closing the year list opened from the header, with a pick or `Escape`, puts focus back on the grid's tab stop, inline as in the popover.\n- A `disabled` inline panel puts `aria-disabled=\"true\"` on its grid and disables every button in it. A `readOnly` one puts `aria-readonly=\"true\"` there instead, and keeps its tab stop and keys.\n- Each time wheel uses `role=\"spinbutton\"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-valuetext`, whose text is the number as the wheel shows it, in the picker's locale's digits when it has a locale. The values drawn above and below are click targets hidden from assistive technology, which reads the value from the spinbutton.\n- In a 12-hour picker, AM/PM is one of those wheels, reading `AM` or `PM`, or the picker's locale's words for them when it has a locale, and it widens to fit a longer word. Its accessible name is `AM/PM` unless `labels.ampm` sets another.\n- In forced colors (Windows' contrast themes), the time wheels' band is drawn in the system's highlight color, since its fill is replaced there, and the values keep the system's text color.\n- The footer's confirm button exposes an accessible label (`Done`); the Reset button reverts your edits to the value the popover opened with, or on an `inline` picker, to the one described under [Inline](https://bestax.io/docs/api/form/datetime/datetimeinput#inline).\n- Tab order walks from the calendar to the footer (Reset / ✓), and from the time wheels to the footer while they are open.\n- On a right-to-left page the launcher sits at the end of the line and the calendar icon at the start. The time wheels keep `dir=\"ltr\"`.\n- A panel that would run past the left or right edge of the screen, as on a phone with the\n field mid-row, keeps its corner and moves sideways just far enough to fit, or, wider than\n the screen, to the edge its text starts from.\n- The `message` describes the input through `aria-describedby`, so a screen reader reads it when the input takes focus. Ids you pass in `aria-describedby` go on the container with the other attributes, except on a phone's native input, which lists them first. An `inline` picker has no input, so there the message describes the picker's group, when something names it.\n- `aria-invalid` and `aria-errormessage` go on the input, while the other attributes you pass go on the container, so a screen reader hears the input is invalid when it takes focus. An `inline` picker has no input, and they stay on its container.\n- The input takes its name from `label`, from a labeled `Field` that isn't `grouped` or `hasAddons` around a `DateTimeInputBase` with no `id` of its own, or from a `<label htmlFor>` of your own pointing at the `id` you give it. `aria-label` and `aria-labelledby` go on the container with the other attributes you pass, so they don't name the input, except on the native input `mobileNative` renders, which takes them itself. An `inline` picker has no input to name.\n- An `autoComplete` you give goes on the field. Without one the text field turns autocomplete off, since the browser's own suggestions would cover the panel. A date and time that autofill writes commits when it reads in the token `format` (the default one when `format` is `Intl` options) or through your `parse`. One it can't read, or that `min`, `max` or a blocked day or time rules out, isn't committed, as with typing: the field shows it as written, and submits it under a `name`, until focus next leaves the field.",
174
174
  "related": ["DateInput", "Input", "TimeInput"],
175
175
  "storybook": "https://bestax.io/storybook/?path=/story/form-datetimeinput",
176
176
  "summary": "The `DateTimeInput` combines a calendar and a time **wheel spinner** in a single popover — an iOS-style layout.",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "title": "In Running Text",
14
- "code": "<Paragraph>\n Reviewed by{' '}\n <HoverCard appendToBody trigger={<Link href=\"#ada\">Ada Lovelace</Link>}>\n <Title as=\"p\" size=\"6\">\n Ada Lovelace\n </Title>\n <SubTitle as=\"p\" size=\"6\">\n Analytical Engine team\n </SubTitle>\n <Link href=\"#profile\">View profile</Link>\n </HoverCard>{' '}\n and merged the same day.\n</Paragraph>"
14
+ "code": "<Paragraph>\n Reviewed by{' '}\n <HoverCard\n appendToBody\n trigger={\n <Link href=\"#ada\" textTransform=\"underlined\">\n Ada Lovelace\n </Link>\n }\n >\n <Title as=\"p\" size=\"6\">\n Ada Lovelace\n </Title>\n <SubTitle as=\"p\" size=\"6\">\n Analytical Engine team\n </SubTitle>\n <Link href=\"#profile\">View profile</Link>\n </HoverCard>{' '}\n and merged the same day.\n</Paragraph>"
15
15
  },
16
16
  {
17
17
  "title": "Placement",
@@ -89,7 +89,7 @@
89
89
  "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
90
90
  }
91
91
  ],
92
- "accessibility": "- The root `Navbar` renders as `<nav role=\"navigation\" aria-label=\"main navigation\">`.\n The default accessible name is `main navigation`. A screen reader announces it with\n the role, and since the name holds the role word, \"navigation\" is heard twice.\n Pass a name without the role word (`aria-label=\"Site\"`), and a different name\n on each Navbar when a page has more than one. A passed `aria-label` replaces\n the default.\n- `Navbar.Item active` sets `aria-current=\"page\"` on the element `as` renders, the link by\n default, so the current item isn't only a color. An `aria-current` you pass wins: a navbar of\n sections on one page can say `\"location\"`, and `aria-current={false}` turns it off.\n- Bulma fills an active link item with its selected color, the link color in a navbar with no\n `color`, and bestax's styles give its text the color Bulma picks to read on that fill,\n `--bulma-navbar-item-selected-color-l`. Bulma's own stylesheet leaves the text in the navbar's\n normal text color, dark gray on blue on the light scheme, so the rule ships in `bestax.css` and\n `extras.css`. A `--bulma-navbar-item-color` you set on the item itself still wins, and an item\n with a `bgColor` keeps the navbar's text color. A rule of your own that takes the fill off\n restates `color` too.\n- Use semantic links (`<a>`) and buttons, and provide clear `aria-label` and `aria-expanded` for the burger toggle.\n- `Navbar.Link` inside a `Navbar.Dropdown` automatically gets `aria-haspopup=\"true\"` and\n `aria-expanded` synced to the dropdown's open state — no manual wiring required.\n <kbd>Enter</kbd>/<kbd>Space</kbd> toggle the dropdown open/closed, and <kbd>Escape</kbd>\n closes it and keeps focus on the link. <kbd>Escape</kbd> anywhere else in the open dropdown, its\n menu included, puts focus back on the link and closes it too, unless a control there marks the\n key used, the key comes from a dialog or from content opened from the menu into a portal, or\n focus can't go back to the link. Focus landing outside an open dropdown, as <kbd>Tab</kbd> past\n its last item or <kbd>Shift</kbd>+<kbd>Tab</kbd> back past its link does, closes it too, so its\n menu isn't left over the page. A controlled one is told through `onActiveChange` and keeps its\n `active`. Focus moving into content opened from the menu into a portal or into a dialog marked\n `aria-modal`, such as a `Modal` an item opens, which gives focus back to the item when it closes, focus going\n nowhere, as the window losing focus does, and a press outside that doesn't move focus leave it\n open. When the trigger isn't interactive on its own — no\n `href`, not `as=\"button\"`, and not a custom component — it also gets `role=\"button\"` and\n `tabIndex={0}` so it's reachable and operable by keyboard, and a mouse/touch click on it\n toggles the dropdown too (a caller-supplied `onClick` still runs, and can\n `preventDefault()` to opt out).\n- A custom component passed to `as` keeps its own semantics, because a router link takes `to`\n rather than `href` and so can't be recognised from the props it's given. If yours renders\n something non-interactive instead, pass `role=\"button\"` and it takes the fallback above —\n `tabIndex` and click included. The keyboard path is wired either way.\n- `hoverable` dropdowns keep working with a mouse (hover-to-open); the keyboard path above\n opens and closes them independently of hover. Bulma shows a `hoverable` dropdown's menu while\n the pointer is on it and while focus is in it, the link included, on a desktop-wide window.\n <kbd>Escape</kbd> puts a menu shown that way away, and it stays away until the pointer has left\n the dropdown and focus has too, or until the pointer comes back or focus moves onto something in\n it. From the page, the key goes on to what has focus; from inside\n the dropdown, focus moves to the link, with the same exceptions as for an open one, such as focus\n that can't go back to the link, where the menu stays. Below the desktop breakpoint, where the menu always\n shows under the burger, Escape doesn't put it away, though it still closes an open one.\n- **A fixed navbar:** with `fixed=\"top\"`, bestax's styles pad the page's scroll by\n `--bulma-navbar-height`, so the browser scrolls a control that takes focus, or an in-page link's\n target, to below the navbar rather than under it. `fixed=\"bottom\"` pads the bottom of the page\n the same way, and a navbar fixed by Bulma's `is-fixed-top-touch` or `-desktop` classes (or the\n bottom pair) in its `className` gets the same at that breakpoint, as it gets the margins that\n keep it over the page while an overlay locks its scrolling. The page's own padding, so its top\n doesn't start under the navbar, is still Bulma's `has-navbar-fixed-top` on `<html>`, or\n `has-navbar-fixed-top-touch` or `-desktop` for a navbar fixed at one breakpoint. A\n `scroll-padding-top` of your own on `<html>`, or an [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s, wins\n over it: set yours for a navbar taller than `--bulma-navbar-height`, as a spaced one is from the\n desktop breakpoint up, or to `0` where your anchor targets already carry a `scroll-margin-top`,\n which adds to it. This ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet.\n- **Forced colors:** Bulma draws the burger's bars as a background color, which forced colors\n (Windows' contrast themes) replaces, so the burger would vanish there while it still works and\n takes focus. bestax's styles keep its bars visible in the system's button text color. That rule\n ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet, and an\n [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s burger gets it too. Bulma marks an active or selected\n link item, `Navbar.Link` and dropdown row with a fill and a text color alone, which forced\n colors replaces, so bestax's styles draw a bar in the system's highlight color inside it there:\n along its bottom in a row, and down its start edge where the items stack, in a dropdown and in\n the menu the burger opens. The item and everything in it stay in the contrast theme's colors,\n and an active tab gets the bar above Bulma's thicker underline. This ships in the same\n stylesheets.\n- **`Navbar.Divider` in forced colors:** Bulma draws it as a background color too, which forced\n colors paints in the dropdown's own color, so the line would vanish. bestax's styles draw it in\n the system's text color there, from the same stylesheets.\n- **An open dropdown's edge in forced colors:** from the desktop breakpoint up, Bulma draws\n `Navbar.DropdownMenu` as a box over the page, edged with a shadow and, for some, a line on the\n side it opens from. Forced colors drops the shadow and paints the box in the page's own color, so\n bestax's styles draw a one pixel line in the system's text color around it there, outside the\n box, so nothing moves. Under the burger its rows sit in the menu, with no box to edge. This\n ships in the same stylesheets.\n- **In a colored [`Hero`](https://bestax.io/docs/api/layout/hero):** Bulma's hero sets the colors its navbar's items\n take on hover and when active, but Bulma's navbar doesn't read them, so a focused or hovered\n item took the scheme's fill under the hero's text, and the active item and the burger took the\n link color. For a `Navbar` with no `color` of its own, bestax's styles draw a focused, hovered or\n active item in the hero's text color with the hero's background color as its text, the burger\n and a tab in the hero's text color, and the dropdown arrow in its link's text color. The menu the\n burger opens, and the dropdown's rows in it, take the hero's background and text, except an\n active row, which keeps Bulma's selected fill and the text that reads on it, and on a phone a bold hero's menu takes the hero's\n own gradient. Where `Navbar.DropdownMenu` is a box of its own, on a desktop, its links keep\n Bulma's colors. That rule ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet.\n\n:::note\nThere's no arrow-key roving between navbar items, and a press outside an open `Navbar.Dropdown`\ncloses it only when it moves focus there. A press on a field moves focus in every browser, and\none on a button or a link does in some, such as Chrome, and not in others, such as Safari. Bulma navbar dropdowns are hover/click surfaces, so this is\nintentionally kept simple.\n:::",
92
+ "accessibility": "- The root `Navbar` renders as `<nav role=\"navigation\" aria-label=\"main navigation\">`.\n The default accessible name is `main navigation`. A screen reader announces it with\n the role, and since the name holds the role word, \"navigation\" is heard twice.\n Pass a name without the role word (`aria-label=\"Site\"`), and a different name\n on each Navbar when a page has more than one. A passed `aria-label` replaces\n the default.\n- `Navbar.Item active` sets `aria-current=\"page\"` on the element `as` renders, the link by\n default, so the current item isn't only a color. An `aria-current` you pass wins: a navbar of\n sections on one page can say `\"location\"`, and `aria-current={false}` turns it off.\n- Bulma fills an active link item with its selected color, the link color in a navbar with no\n `color`, and bestax's styles give its text the color Bulma picks to read on that fill,\n `--bulma-navbar-item-selected-color-l`. Bulma's own stylesheet leaves the text in the navbar's\n normal text color, dark gray on blue on the light scheme, so the rule ships in `bestax.css` and\n `extras.css`. A `--bulma-navbar-item-color` you set on the item itself still wins, and an item\n with a `bgColor` keeps the navbar's text color. A rule of your own that takes the fill off\n restates `color` too.\n- Use semantic links (`<a>`) and buttons, and provide clear `aria-label` and `aria-expanded` for the burger toggle.\n- `Navbar.Link` inside a `Navbar.Dropdown` automatically gets `aria-haspopup=\"true\"` and\n `aria-expanded` synced to the dropdown's open state — no manual wiring required.\n <kbd>Enter</kbd>/<kbd>Space</kbd> toggle the dropdown open/closed, and <kbd>Escape</kbd>\n closes it and keeps focus on the link. <kbd>Escape</kbd> anywhere else in the open dropdown, its\n menu included, puts focus back on the link and closes it too, unless a control there marks the\n key used, the key comes from a dialog or from content opened from the menu into a portal, or\n focus can't go back to the link. Focus landing outside an open dropdown, as <kbd>Tab</kbd> past\n its last item or <kbd>Shift</kbd>+<kbd>Tab</kbd> back past its link does, closes it too, so its\n menu isn't left over the page. A controlled one is told through `onActiveChange` and keeps its\n `active`. Focus moving into content opened from the menu into a portal or into a dialog marked\n `aria-modal`, such as a `Modal` an item opens, which gives focus back to the item when it closes, focus going\n nowhere, as the window losing focus does, and a press outside that doesn't move focus leave it\n open. When the trigger isn't interactive on its own — no\n `href`, not `as=\"button\"`, and not a custom component — it also gets `role=\"button\"` and\n `tabIndex={0}` so it's reachable and operable by keyboard, and a mouse/touch click on it\n toggles the dropdown too (a caller-supplied `onClick` still runs, and can\n `preventDefault()` to opt out).\n- A custom component passed to `as` keeps its own semantics, because a router link takes `to`\n rather than `href` and so can't be recognised from the props it's given. If yours renders\n something non-interactive instead, pass `role=\"button\"` and it takes the fallback above —\n `tabIndex` and click included. The keyboard path is wired either way.\n- `hoverable` dropdowns keep working with a mouse (hover-to-open); the keyboard path above\n opens and closes them independently of hover. Bulma shows a `hoverable` dropdown's menu while\n the pointer is on it and while focus is in it, the link included, on a desktop-wide window.\n <kbd>Escape</kbd> puts a menu shown that way away, and it stays away until the pointer has left\n the dropdown and focus has too, or until the pointer comes back or focus moves onto something in\n it. From the page, the key goes on to what has focus; from inside\n the dropdown, focus moves to the link, with the same exceptions as for an open one, such as focus\n that can't go back to the link, where the menu stays. Below the desktop breakpoint, where the menu always\n shows under the burger, Escape doesn't put it away, though it still closes an open one.\n- **A fixed navbar:** with `fixed=\"top\"`, bestax's styles pad the page's scroll by\n `--bulma-navbar-height`, so the browser scrolls a control that takes focus, or an in-page link's\n target, to below the navbar rather than under it. `fixed=\"bottom\"` pads the bottom of the page\n the same way, and a navbar fixed by Bulma's `is-fixed-top-touch` or `-desktop` classes (or the\n bottom pair) in its `className` gets the same at that breakpoint, as it gets the margins that\n keep it over the page while an overlay locks its scrolling. From the desktop breakpoint up, a\n spaced navbar pads by its taller height, with `--bulma-navbar-padding-vertical` above and below\n (Bulma's `1rem` unless you register the variable on `:root` with your navbar's padding). The page's own padding, so its top\n doesn't start under the navbar, is still Bulma's `has-navbar-fixed-top` on `<html>`, or\n `has-navbar-fixed-top-touch` or `-desktop` for a navbar fixed at one breakpoint. A\n `scroll-padding-top` of your own on `<html>`, or an [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s, wins\n over it: set yours for a navbar taller than the height it pads by, or to `0` where your anchor\n targets already carry a `scroll-margin-top`, which adds to it. This ships in `bestax.css` and\n `extras.css`, not in Bulma's own stylesheet.\n- **Forced colors:** Bulma draws the burger's bars as a background color, which forced colors\n (Windows' contrast themes) replaces, so the burger would vanish there while it still works and\n takes focus. bestax's styles keep its bars visible in the system's button text color. That rule\n ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet, and an\n [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s burger gets it too. Bulma marks an active or selected\n link item, `Navbar.Link` and dropdown row with a fill and a text color alone, which forced\n colors replaces, so bestax's styles draw a bar in the system's highlight color inside it there:\n along its bottom in a row, and down its start edge where the items stack, in a dropdown and in\n the menu the burger opens. The item and everything in it stay in the contrast theme's colors,\n and an active tab gets the bar above Bulma's thicker underline. This ships in the same\n stylesheets.\n- **`Navbar.Divider` in forced colors:** Bulma draws it as a background color too, which forced\n colors paints in the dropdown's own color, so the line would vanish. bestax's styles draw it in\n the system's text color there, from the same stylesheets.\n- **An open dropdown's edge in forced colors:** from the desktop breakpoint up, Bulma draws\n `Navbar.DropdownMenu` as a box over the page, edged with a shadow and, for some, a line on the\n side it opens from. Forced colors drops the shadow and paints the box in the page's own color, so\n bestax's styles draw a one pixel line in the system's text color around it there, outside the\n box, so nothing moves. Under the burger its rows sit in the menu, with no box to edge. This\n ships in the same stylesheets.\n- **In a colored [`Hero`](https://bestax.io/docs/api/layout/hero):** Bulma's hero sets the colors its navbar's items\n take on hover and when active, but Bulma's navbar doesn't read them, so a focused or hovered\n item took the scheme's fill under the hero's text, and the active item and the burger took the\n link color. For a `Navbar` with no `color` of its own, bestax's styles draw a focused, hovered or\n active item in the hero's text color with the hero's background color as its text, the burger\n and a tab in the hero's text color, and the dropdown arrow in its link's text color. The menu the\n burger opens, and the dropdown's rows in it, take the hero's background and text, except an\n active row, which keeps Bulma's selected fill and the text that reads on it, and on a phone a bold hero's menu takes the hero's\n own gradient. Where `Navbar.DropdownMenu` is a box of its own, on a desktop, its links keep\n Bulma's colors. That rule ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet.\n\n:::note\nThere's no arrow-key roving between navbar items, and a press outside an open `Navbar.Dropdown`\ncloses it only when it moves focus there. A press on a field moves focus in every browser, and\none on a button or a link does in some, such as Chrome, and not in others, such as Safari. Bulma navbar dropdowns are hover/click surfaces, so this is\nintentionally kept simple.\n:::",
93
93
  "related": ["Button", "Icon", "useBulmaClasses"],
94
94
  "storybook": "https://bestax.io/storybook/?path=/story/components-navbar--default",
95
95
  "summary": "The `Navbar` component implements Bulma's powerful, responsive navigation bar for your Bulma React UI.",
@@ -153,7 +153,7 @@
153
153
  "name": "isSpaced",
154
154
  "type": "boolean",
155
155
  "default": "false",
156
- "description": "Renders Bulma's `is-spaced`: padding around the navbar, rounded items and boxed dropdowns. Bulma applies it from the desktop breakpoint up, so below that the navbar looks the same either way. With `fixed=\"top\"`, put `has-spaced-navbar-fixed-top` on `<html>` beside `has-navbar-fixed-top` (the `-bottom` pair for `fixed=\"bottom\"`). From desktop up the spaced navbar is taller than `has-navbar-fixed-top` pads the page for, and there the spaced class pads it for the taller navbar.",
156
+ "description": "Renders Bulma's `is-spaced`: padding around the navbar, rounded items and boxed dropdowns. Bulma applies it from the desktop breakpoint up, so below that the navbar looks the same either way. From desktop up a spaced navbar with `fixed=\"top\"` is taller than `has-navbar-fixed-top` pads the page for. Bulma's `has-spaced-navbar-fixed-top` is meant to pad it for the taller navbar, but it reads `--bulma-navbar-padding-vertical`, which Bulma sets on the navbar only, so on `<html>` it sets the page's padding to `0` and takes away `has-navbar-fixed-top`'s. Register that variable on `:root` with the padding the navbar uses (Bulma's default is `1rem`) to make it work beside `has-navbar-fixed-top`, or pad the page yourself; the same goes for the `-bottom` pair with `fixed=\"bottom\"`.",
157
157
  "required": false,
158
158
  "inherited": false,
159
159
  "deprecated": false
@@ -11,7 +11,7 @@
11
11
  "summary": "The helper tuples enumerate the core accepted values for the shared Bulma helper props — public API for building prop types and validation.",
12
12
  "import": "import {\n validColors,\n validSizes,\n validViewports,\n} from '@allxsmith/bestax-bulma';",
13
13
  "api": null,
14
- "doc": "# Valid value constants\n\n## Overview\n\nThe helper tuples enumerate the core accepted values for the shared Bulma helper props — public API for building prop types and validation. Each is a readonly `as const` tuple, so `(typeof validColors)[number]` gives you the exact string-literal union. `useBulmaClasses` (and the per-concern hooks) silently ignore unrecognized values. A few props accept documented extras beyond their tuple, noted in the table below: the `display*` props also take `'none'` (rendering the `is-hidden*` visibility class), the color props also take `'inherit'` and `'current'`, and the gap props also take each step as a number — so validate against the prop's TypeScript union, not the tuple alone, when you need the full contract.\n\nSome components also export a tuple for their own props. Those are not helper tuples, and they follow the [Constants](https://bestax.io/docs/api/helpers/valid-values#constants) table in sections of their own.\n\n---\n\n## Import\n\n```tsx\nimport {\n validColors,\n validSizes,\n validViewports,\n} from '@allxsmith/bestax-bulma';\n```\n\nEvery constant on this page is importable the same way.\n\n### Without loading the library\n\nTooling that only needs the helper tuples can take them from the `./constants`\nsubpath, which serves the value module on its own, with no React and no\ncomponent code:\n\n```ts\nimport { validColors } from '@allxsmith/bestax-bulma/constants';\n```\n\nIt resolves from both ESM and CommonJS. This is how\n[`@allxsmith/eslint-plugin-bestax`](https://bestax.io/docs/guides/getting-started/eslint-plugin)\nvalidates helper values at lint time rather than keeping a copy of them. The\n[form control constants](https://bestax.io/docs/api/helpers/valid-values#form-control-constants) and the\n[table color constant](https://bestax.io/docs/api/helpers/valid-values#table-color-constant) are not on this subpath.\n\n---\n\n## Constants\n\n| Constant | Values | Used by prop family |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `validColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, the greys, and `'black'`, `'white'`, `'light'`, `'dark'`, each of `black`/`white` also in a `-bis` and `-ter` shade | `color`, `backgroundColor` helper props. Component `color` modifier unions are narrower and component-specific; some `validColors` members ship no `is-<color>` CSS (deprecated, warned in dev). See each component's Props table. Scheme-aware components extend their `bgColor` unions with `validSchemeColors` (below). |\n| `validColorShades` | `'00'`, `'05'` … `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `colorShade`, `backgroundColorShade` |\n| `validSchemeColors` | `'scheme-main'`, `'scheme-main-bis'`, `'scheme-main-ter'`, `'scheme-invert'`, `'scheme-invert-bis'`, `'scheme-invert-ter'` | Scheme-aware `bgColor`/`backgroundColor` values. Emit no class — components render them as a dark-mode-safe inline `background-color: var(--bulma-<value>)` style (Bulma ships no `has-background-scheme-*` helpers). |\n| `validSizes` | `'0'`–`'6'`, `'auto'` | Spacing: `m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, … `px`, `py` |\n| `validGaps` | `'0'`, `'0.5'`, `'1'`, `'1.5'`, `'2'`, `'2.5'`, `'3'`, `'3.5'`, `'4'`, `'4.5'`, `'5'`, `'5.5'`, `'6'`, `'6.5'`, `'7'`, `'7.5'`, `'8'` | `gap`, `columnGap`, `rowGap` (`is-gap-<value>`, `is-column-gap-<value>`, `is-row-gap-<value>`), which also take each step as a number. Each whole step is 0.5rem, a different scale from `validSizes`. |\n| `validTextSizes` | `'1'`–`'7'` | `textSize` (+ `textSizeMobile` … `textSizeFullhd`) |\n| `validAlignments` | `'centered'`, `'justified'`, `'left'`, `'right'` | `textAlign` (+ viewport variants) |\n| `validTextTransforms` | `'capitalized'`, `'lowercase'`, `'uppercase'`, `'italic'` | `textTransform` |\n| `validTextWeights` | `'light'`, `'normal'`, `'medium'`, `'semibold'`, `'bold'` | `textWeight` |\n| `validFontFamilies` | `'sans-serif'`, `'monospace'`, `'primary'`, `'secondary'`, `'code'` | `fontFamily` |\n| `validDisplays` | `'block'`, `'flex'`, `'inline'`, `'inline-block'`, `'inline-flex'`, `'grid'` — the `display*` props additionally accept `'none'` | `display` (+ `displayMobile` … `displayFullhd`) |\n| `validVisibilities` | `'hidden'`, `'sr-only'`, `'invisible'` | `visibility` (+ viewport variants) |\n| `validFlexDirections` | `'row'`, `'row-reverse'`, `'column'`, `'column-reverse'` | `flexDirection` |\n| `validFlexWraps` | `'nowrap'`, `'wrap'`, `'wrap-reverse'` | `flexWrap` |\n| `validJustifyContents` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'start'`, `'end'`, `'left'`, `'right'` | `justifyContent` |\n| `validAlignContents` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'stretch'` | `alignContent` |\n| `validAlignItems` | `'stretch'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'start'`, `'end'` | `alignItems` |\n| `validAlignSelfs` | `'auto'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'stretch'` | `alignSelf` |\n| `validFlexGrowShrink` | `'0'`–`'5'` | `flexGrow`, `flexShrink` |\n| `validViewports` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | `viewport` (responsive modifier) |\n| `validFloats` | `'left'`, `'right'` | `float` |\n| `validOverflows` | `'clipped'`, `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `overflow`. `clipped` renders `is-clipped`; the rest render `is-overflow-<value>`. |\n| `validAxisOverflows` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `overflowX`, `overflowY` (`is-overflow-x-<value>`, `is-overflow-y-<value>`) |\n| `validInteractions` | `'unselectable'`, `'clickable'` | `interaction` |\n| `validCursors` | `'pointer'`, `'help'` | `cursor`. These share no class stem: `pointer` renders `is-clickable` and `help` renders `is-cursor-help`. |\n| `validRadii` | `'radiusless'`, `'small'`, `'normal'`, `'large'`, `'rounded'` | `radius`. `radiusless` removes the radius (`is-radiusless`); the sizes set one (`has-radius-<value>`). |\n| `validShadows` | `'shadowless'` | `shadow`. It removes the shadow, so `<Box shadow />` renders nothing. |\n| `validResponsives` | `'mobile'`, `'narrow'` | `responsive`. A different axis from `validViewports`: these are the Bulma column and table modifiers. |\n| `validPositions` | `'absolute'`, `'fixed'`, `'relative'`, `'static'`, `'sticky'` | `pos` (`is-position-<value>`) |\n| `validAspectRatios` | `'1by1'`, `'5by4'`, `'4by3'`, `'3by2'`, `'5by3'`, `'16by9'`, `'2by1'`, `'3by1'`, `'4by5'`, `'3by4'`, `'2by3'`, `'3by5'`, `'9by16'`, `'1by2'`, `'1by3'` | `aspectRatio` (`is-aspect-ratio-<value>`) |\n\n---\n\n## Form control constants\n\n`Checkbox`, `Radio` and `Switch` each export the values their own `color` and `size` props accept, as `as const` tuples like the ones above, and each prop's type is built from its tuple. They are not the helper tuples under another name: the colors are a subset of `validColors`, and the sizes are element sizes, not the spacing scale in `validSizes`. Each component checks membership at runtime too, so a value outside its tuple adds no modifier class.\n\n| Constant | Values | Used by prop family |\n| ---------------- | --------------------------------------------------------------------- | ------------------------------------------------------- |\n| `checkboxColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'` | [`Checkbox`](https://bestax.io/docs/api/form/checkbox) `color` |\n| `checkboxSizes` | `'small'`, `'normal'`, `'medium'`, `'large'` | [`Checkbox`](https://bestax.io/docs/api/form/checkbox) `size` |\n| `radioColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'` | [`Radio`](https://bestax.io/docs/api/form/radio) `color` |\n| `radioSizes` | `'small'`, `'normal'`, `'medium'`, `'large'` | [`Radio`](https://bestax.io/docs/api/form/radio) `size` |\n| `switchColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'` | [`Switch`](https://bestax.io/docs/api/form/switch) `color` and `passiveType` |\n| `switchSizes` | `'small'`, `'normal'`, `'medium'`, `'large'` | [`Switch`](https://bestax.io/docs/api/form/switch) `size` |\n\nImport them from the package root. The `./constants` subpath serves the helper module only, so tooling that reads these loads the main entry:\n\n```ts\nimport { switchColors, switchSizes } from '@allxsmith/bestax-bulma';\n\ntype SwitchColor = (typeof switchColors)[number];\ntype SwitchSize = (typeof switchSizes)[number];\n```\n\n---\n\n## Table color constant\n\n`Tr`, `Th` and `Td` share one `color` tuple, `validTableColors`, and the `TableColor` type their `color` prop takes is built from it. Like the form control colors, it is a subset of `validColors`, and each component checks membership at runtime, so a value outside the tuple adds no modifier class.\n\n| Constant | Values | Used by prop family |\n| ------------------ | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |\n| `validTableColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, `'black'`, `'dark'`, `'light'`, `'white'` | [`Tr`, `Th` and `Td`](https://bestax.io/docs/api/elements/table) `color` |\n\nImport it from the package root. `TableColor` is exported there too, so a runtime check can narrow to it:\n\n```ts\nimport { validTableColors, type TableColor } from '@allxsmith/bestax-bulma';\n\nfunction isTableColor(value: string): value is TableColor {\n return (validTableColors as readonly string[]).includes(value);\n}\n```\n\n---\n\n## Typing with `(typeof …)[number]`\n\nBecause the arrays are `as const`, indexing them with `number` yields the union of their literal values — the same idiom the library uses internally for its prop types:\n\n```ts\nimport { validColors, validSizes } from '@allxsmith/bestax-bulma';\n\ntype Color = (typeof validColors)[number]; // 'primary' | 'link' | … | 'dark'\ntype Spacing = (typeof validSizes)[number]; // '0' | '1' | … | '6' | 'auto'\n\ninterface MyComponentProps {\n color?: Color;\n m?: Spacing;\n}\n```\n\nThey also work as runtime validators:\n\n```ts\nfunction isColor(value: string): value is (typeof validColors)[number] {\n return (validColors as readonly string[]).includes(value);\n}\n```\n\n:::warning `validSizes` is for spacing, not element sizes\n\n`validSizes` (`'0'`–`'6'` | `'auto'`) enumerates the **spacing helper** scale — the values for `m`/`p` props like `m=\"4\"` (→ `m-4`). Element `size` props are a different axis: `Button`, `Icon`, and friends declare an inline union such as `'small' | 'medium' | 'large'` (Button adds `'normal'`), **not** `validSizes`. Don't use `validSizes` to type a component's `size` prop.\n\n:::\n\n---\n\n## See Also\n\n- [`useBulmaClasses`](https://bestax.io/docs/api/helpers/usebulmaclasses): The hook that consumes these values and generates the helper classes.\n- [Helper guides](https://bestax.io/docs/guides/helpers/color): Task-oriented walkthroughs of the helper-prop system (color, spacing, typography, flex, visibility).",
14
+ "doc": "# Valid value constants\n\n## Overview\n\nThe helper tuples enumerate the core accepted values for the shared Bulma helper props — public API for building prop types and validation. Each is a readonly `as const` tuple, so `(typeof validColors)[number]` gives you the exact string-literal union. `useBulmaClasses` (and the per-concern hooks) silently ignore unrecognized values. A few props accept documented extras beyond their tuple, noted in the table below: the `display*` props also take `'none'` (rendering the `is-hidden*` visibility class), the color props also take `'inherit'` and `'current'`, and the gap props also take each step as a number — so validate against the prop's TypeScript union, not the tuple alone, when you need the full contract.\n\nSome components also export a tuple for their own props. Those are not helper tuples, and they follow the [Constants](https://bestax.io/docs/api/helpers/valid-values#constants) table in sections of their own.\n\n---\n\n## Import\n\n```tsx\nimport {\n validColors,\n validSizes,\n validViewports,\n} from '@allxsmith/bestax-bulma';\n```\n\nEvery constant on this page is importable the same way.\n\n### Without loading the library\n\nTooling that only needs the helper tuples can take them from the `./constants`\nsubpath, which serves the value module on its own, with no React and no\ncomponent code:\n\n```ts\nimport { validColors } from '@allxsmith/bestax-bulma/constants';\n```\n\nIt resolves from both ESM and CommonJS. This is how\n[`@allxsmith/eslint-plugin-bestax`](https://bestax.io/docs/guides/getting-started/eslint-plugin)\nvalidates helper values at lint time rather than keeping a copy of them. The\n[form control constants](https://bestax.io/docs/api/helpers/valid-values#form-control-constants) and the\n[table color constant](https://bestax.io/docs/api/helpers/valid-values#table-color-constant) are not on this subpath.\n\n---\n\n## Constants\n\n| Constant | Values | Used by prop family |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `validColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, the greys, and `'black'`, `'white'`, `'light'`, `'dark'`, each of `black`/`white` also in a `-bis` and `-ter` shade | `color`, `backgroundColor` helper props. Component `color` modifier unions are narrower and component-specific; some `validColors` members ship no `is-<color>` CSS (deprecated, warned in dev). See each component's Props table. Scheme-aware components extend their `bgColor` unions with `validSchemeColors` (below). |\n| `validColorShades` | `'00'`, `'05'` … `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `colorShade`, `backgroundColorShade` |\n| `validSchemeColors` | `'scheme-main'`, `'scheme-main-bis'`, `'scheme-main-ter'`, `'scheme-invert'`, `'scheme-invert-bis'`, `'scheme-invert-ter'` | Scheme-aware `bgColor`/`backgroundColor` values. Emit no class — components render them as a dark-mode-safe inline `background-color: var(--bulma-<value>)` style (Bulma ships no `has-background-scheme-*` helpers). |\n| `validSizes` | `'0'`–`'6'`, `'auto'` | Spacing: `m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, … `px`, `py` |\n| `validGaps` | `'0'`, `'0.5'`, `'1'`, `'1.5'`, `'2'`, `'2.5'`, `'3'`, `'3.5'`, `'4'`, `'4.5'`, `'5'`, `'5.5'`, `'6'`, `'6.5'`, `'7'`, `'7.5'`, `'8'` | `gap`, `columnGap`, `rowGap` (`is-gap-<value>`, `is-column-gap-<value>`, `is-row-gap-<value>`), which also take each step as a number. Each whole step is 0.5rem, a different scale from `validSizes`. |\n| `validTextSizes` | `'1'`–`'7'` | `textSize` (+ `textSizeMobile` … `textSizeFullhd`) |\n| `validAlignments` | `'centered'`, `'justified'`, `'left'`, `'right'` | `textAlign` (+ viewport variants) |\n| `validTextTransforms` | `'capitalized'`, `'lowercase'`, `'uppercase'`, `'italic'`, `'underlined'` | `textTransform` |\n| `validTextWeights` | `'light'`, `'normal'`, `'medium'`, `'semibold'`, `'bold'` | `textWeight` |\n| `validFontFamilies` | `'sans-serif'`, `'monospace'`, `'primary'`, `'secondary'`, `'code'` | `fontFamily` |\n| `validDisplays` | `'block'`, `'flex'`, `'inline'`, `'inline-block'`, `'inline-flex'`, `'grid'` — the `display*` props additionally accept `'none'` | `display` (+ `displayMobile` … `displayFullhd`) |\n| `validVisibilities` | `'hidden'`, `'sr-only'`, `'invisible'` | `visibility` (+ viewport variants) |\n| `validFlexDirections` | `'row'`, `'row-reverse'`, `'column'`, `'column-reverse'` | `flexDirection` |\n| `validFlexWraps` | `'nowrap'`, `'wrap'`, `'wrap-reverse'` | `flexWrap` |\n| `validJustifyContents` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'start'`, `'end'`, `'left'`, `'right'` | `justifyContent` |\n| `validAlignContents` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'stretch'` | `alignContent` |\n| `validAlignItems` | `'stretch'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'start'`, `'end'` | `alignItems` |\n| `validAlignSelfs` | `'auto'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'stretch'` | `alignSelf` |\n| `validFlexGrowShrink` | `'0'`–`'5'` | `flexGrow`, `flexShrink` |\n| `validViewports` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | `viewport` (responsive modifier) |\n| `validFloats` | `'left'`, `'right'` | `float` |\n| `validOverflows` | `'clipped'`, `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `overflow`. `clipped` renders `is-clipped`; the rest render `is-overflow-<value>`. |\n| `validAxisOverflows` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `overflowX`, `overflowY` (`is-overflow-x-<value>`, `is-overflow-y-<value>`) |\n| `validInteractions` | `'unselectable'`, `'clickable'` | `interaction` |\n| `validCursors` | `'pointer'`, `'help'` | `cursor`. These share no class stem: `pointer` renders `is-clickable` and `help` renders `is-cursor-help`. |\n| `validRadii` | `'radiusless'`, `'small'`, `'normal'`, `'large'`, `'rounded'` | `radius`. `radiusless` removes the radius (`is-radiusless`); the sizes set one (`has-radius-<value>`). |\n| `validShadows` | `'shadowless'` | `shadow`. It removes the shadow, so `<Box shadow />` renders nothing. |\n| `validResponsives` | `'mobile'`, `'narrow'` | `responsive`. A different axis from `validViewports`: these are the Bulma column and table modifiers. |\n| `validPositions` | `'absolute'`, `'fixed'`, `'relative'`, `'static'`, `'sticky'` | `pos` (`is-position-<value>`) |\n| `validAspectRatios` | `'1by1'`, `'5by4'`, `'4by3'`, `'3by2'`, `'5by3'`, `'16by9'`, `'2by1'`, `'3by1'`, `'4by5'`, `'3by4'`, `'2by3'`, `'3by5'`, `'9by16'`, `'1by2'`, `'1by3'` | `aspectRatio` (`is-aspect-ratio-<value>`) |\n\n---\n\n## Form control constants\n\n`Checkbox`, `Radio` and `Switch` each export the values their own `color` and `size` props accept, as `as const` tuples like the ones above, and each prop's type is built from its tuple. They are not the helper tuples under another name: the colors are a subset of `validColors`, and the sizes are element sizes, not the spacing scale in `validSizes`. Each component checks membership at runtime too, so a value outside its tuple adds no modifier class.\n\n| Constant | Values | Used by prop family |\n| ---------------- | --------------------------------------------------------------------- | ------------------------------------------------------- |\n| `checkboxColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'` | [`Checkbox`](https://bestax.io/docs/api/form/checkbox) `color` |\n| `checkboxSizes` | `'small'`, `'normal'`, `'medium'`, `'large'` | [`Checkbox`](https://bestax.io/docs/api/form/checkbox) `size` |\n| `radioColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'` | [`Radio`](https://bestax.io/docs/api/form/radio) `color` |\n| `radioSizes` | `'small'`, `'normal'`, `'medium'`, `'large'` | [`Radio`](https://bestax.io/docs/api/form/radio) `size` |\n| `switchColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'` | [`Switch`](https://bestax.io/docs/api/form/switch) `color` and `passiveType` |\n| `switchSizes` | `'small'`, `'normal'`, `'medium'`, `'large'` | [`Switch`](https://bestax.io/docs/api/form/switch) `size` |\n\nImport them from the package root. The `./constants` subpath serves the helper module only, so tooling that reads these loads the main entry:\n\n```ts\nimport { switchColors, switchSizes } from '@allxsmith/bestax-bulma';\n\ntype SwitchColor = (typeof switchColors)[number];\ntype SwitchSize = (typeof switchSizes)[number];\n```\n\n---\n\n## Table color constant\n\n`Tr`, `Th` and `Td` share one `color` tuple, `validTableColors`, and the `TableColor` type their `color` prop takes is built from it. Like the form control colors, it is a subset of `validColors`, and each component checks membership at runtime, so a value outside the tuple adds no modifier class.\n\n| Constant | Values | Used by prop family |\n| ------------------ | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |\n| `validTableColors` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, `'black'`, `'dark'`, `'light'`, `'white'` | [`Tr`, `Th` and `Td`](https://bestax.io/docs/api/elements/table) `color` |\n\nImport it from the package root. `TableColor` is exported there too, so a runtime check can narrow to it:\n\n```ts\nimport { validTableColors, type TableColor } from '@allxsmith/bestax-bulma';\n\nfunction isTableColor(value: string): value is TableColor {\n return (validTableColors as readonly string[]).includes(value);\n}\n```\n\n---\n\n## Typing with `(typeof …)[number]`\n\nBecause the arrays are `as const`, indexing them with `number` yields the union of their literal values — the same idiom the library uses internally for its prop types:\n\n```ts\nimport { validColors, validSizes } from '@allxsmith/bestax-bulma';\n\ntype Color = (typeof validColors)[number]; // 'primary' | 'link' | … | 'dark'\ntype Spacing = (typeof validSizes)[number]; // '0' | '1' | … | '6' | 'auto'\n\ninterface MyComponentProps {\n color?: Color;\n m?: Spacing;\n}\n```\n\nThey also work as runtime validators:\n\n```ts\nfunction isColor(value: string): value is (typeof validColors)[number] {\n return (validColors as readonly string[]).includes(value);\n}\n```\n\n:::warning `validSizes` is for spacing, not element sizes\n\n`validSizes` (`'0'`–`'6'` | `'auto'`) enumerates the **spacing helper** scale — the values for `m`/`p` props like `m=\"4\"` (→ `m-4`). Element `size` props are a different axis: `Button`, `Icon`, and friends declare an inline union such as `'small' | 'medium' | 'large'` (Button adds `'normal'`), **not** `validSizes`. Don't use `validSizes` to type a component's `size` prop.\n\n:::\n\n---\n\n## See Also\n\n- [`useBulmaClasses`](https://bestax.io/docs/api/helpers/usebulmaclasses): The hook that consumes these values and generates the helper classes.\n- [Helper guides](https://bestax.io/docs/guides/helpers/color): Task-oriented walkthroughs of the helper-prop system (color, spacing, typography, flex, visibility).",
15
15
  "parts": [],
16
16
  "cssVars": []
17
17
  }
@@ -91,7 +91,7 @@
91
91
  },
92
92
  {
93
93
  "title": "Text Transform",
94
- "code": "<>\n <Box>\n <Content textTransform=\"uppercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"lowercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"capitalized\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"italic\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>"
94
+ "code": "<>\n <Box>\n <Content textTransform=\"uppercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"lowercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"capitalized\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"italic\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"underlined\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>"
95
95
  },
96
96
  {
97
97
  "title": "Text Weight",
@@ -197,7 +197,7 @@
197
197
  "summary": "`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props.",
198
198
  "import": "import { useBulmaClasses } from '@allxsmith/bestax-bulma';",
199
199
  "api": "```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.",
200
- "doc": "# useBulmaClasses\n\n## Overview\n\n`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props. It makes it easy to apply color, spacing, alignment, typography, flexbox, and other Bulma utility classes to your components in a type-safe, composable way. It also separates out any non-helper props for direct use on elements.\n\n---\n\n## Import\n\n```tsx\nimport { useBulmaClasses } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Usage\n\n:::info Container components pad themselves\nContainer components like `Box`, `Notification`, `Message`, and `Card` ship with Bulma's standard, pleasant padding and stack with sensible default spacing. The examples below only add margin or padding props when spacing itself is what's being demonstrated.\n:::\n\n### Basic Example\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, rest });\n // bulmaHelperClasses: 'has-text-link has-background-primary p-4 has-text-centered'\n // rest: { id: 'card1' }\n}\n```\n\nApply to your component:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return (\n <div className={classNames('custom-card', bulmaHelperClasses)} {...rest}>\n Card content\n </div>\n );\n}\n```\n\n---\n\n### Responsive Props\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n m: '2',\n textAlign: 'centered',\n viewport: 'mobile',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'has-text-link-mobile m-2-mobile has-text-centered-mobile'\n}\n```\n\n---\n\n### Touch and `-only` Viewports\n\nBeyond the five breakpoint props, `display`/`visibility` also take `touch` (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome) and the `-only` variants (`tablet-only`, `desktop-only`, `widescreen-only`), each isolating a single breakpoint band:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n displayTouch: 'none',\n displayDesktopOnly: 'flex',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-hidden-touch is-flex-desktop-only'\n}\n```\n\n```tsx live\n<Buttons>\n <Button visibilityTouch=\"hidden\">Hidden on mobile + tablet</Button>\n <Button visibilityDesktopOnly=\"invisible\">Invisible on desktop only</Button>\n <Button>Always visible</Button>\n</Buttons>\n```\n\nThe legacy `viewport` prop widens to all nine values too, so `useBulmaClasses({ display: 'flex', viewport: 'touch' })` produces `is-flex-touch`. One exception: Bulma ships no `is-size-*` classes for the three `-only` bands, so `textSize` combined with a `tablet-only`/`desktop-only`/`widescreen-only` `viewport` degrades to the base `is-size-N` (rather than emitting a dead `is-size-N-tablet-only`); `touch` and the five breakpoints are unaffected.\n\n---\n\n### Grid Display\n\n`display` also accepts `'grid'`, emitting `is-grid`:\n\n```tsx live\n<Box display=\"grid\">\n <Notification color=\"primary\" m=\"1\">\n Cell 1\n </Notification>\n <Notification color=\"info\" m=\"1\">\n Cell 2\n </Notification>\n</Box>\n```\n\n---\n\n### With Flexbox Helpers\n\nFlexbox properties are divided into two categories:\n\n#### Container Properties\n\nThese properties apply to elements with `display: flex` or `display: inline-flex`, which on most components means a `display` prop of `flex` or `inline-flex` as well. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) are flex containers already, so they take these with no `display` prop:\n\n- `flexDirection` - Direction of flex items\n- `flexWrap` - Whether items wrap\n- `justifyContent` - Alignment along main axis\n- `alignContent` - Alignment of wrapped lines\n- `alignItems` - Alignment along cross axis\n\n#### Item Properties\n\nThese properties apply to flex items (children of flex containers) and **do not require** the element itself to have `display: flex`:\n\n- `alignSelf` - Override container's alignItems for this item\n- `flexGrow` - How much the item should grow\n- `flexShrink` - How much the item should shrink\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '4',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-gap-4 is-flex is-flex-direction-column is-align-items-center is-justify-content-center'\n}\n```\n\nExample with flex items:\n\n```tsx\n// Container with display flex\n<Box display=\"flex\" alignItems=\"center\">\n {/* Items don't need display flex to use alignSelf, flexGrow, flexShrink */}\n <Button alignSelf=\"flex-start\">Start</Button>\n <Button alignSelf=\"center\" flexGrow=\"1\">\n Center & Grow\n </Button>\n <Button alignSelf=\"flex-end\" flexShrink=\"0\">\n End & No Shrink\n </Button>\n</Box>\n```\n\n---\n\n### Using with Components\n\n:::note These are illustrations, not replacements\nThe snippets below rebuild simplified components by hand purely to show how `useBulmaClasses` fits inside one. In a real app, use the library's own [Columns / Column](https://bestax.io/docs/api/columns) and [Card](https://bestax.io/docs/api/components/card) components — they already wire up `useBulmaClasses` (plus prefixes, modifiers, and more) for you.\n:::\n\n#### Columns\n\n`MyColumns` merges a caller's `className` with its own and forwards the rest of its props to `useBulmaClasses` — the `textAlign` and `textTransform` helper props below flow through `props` into the hook (producing `has-text-centered is-uppercase`), while anything the hook doesn't recognize comes back in `rest` and lands on the `<div>`:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function MyColumns({\n children,\n className,\n ...props\n }: BulmaClassesProps & React.ComponentPropsWithoutRef<'div'>) {\n const { bulmaHelperClasses, rest } = useBulmaClasses(props);\n return (\n <div\n className={classNames('columns', bulmaHelperClasses, className)}\n {...rest}\n >\n {children}\n </div>\n );\n }\n\n return (\n <MyColumns textAlign=\"centered\" textTransform=\"uppercase\">\n <div className=\"column\">\n <Notification color=\"primary\">Left</Notification>\n </div>\n <div className=\"column\">\n <Notification color=\"info\">Right</Notification>\n </div>\n </MyColumns>\n );\n}\n```\n\n#### Card\n\n```tsx live\nfunction example() {\n const props = {};\n\n const textColor = 'white';\n const bgColor = 'primary';\n const hasShadow = true;\n const className = 'custom-card';\n const children = <p>Making a custom card</p>;\n const p = '4';\n\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: textColor,\n backgroundColor: bgColor,\n p,\n ...props,\n });\n const cardClasses = classNames('card', className, bulmaHelperClasses, {\n 'is-shadowless': !hasShadow,\n });\n return (\n <div className={cardClasses} {...rest}>\n {children}\n </div>\n );\n}\n```\n\n---\n\n### Colors\n\nUse the `color` prop to apply Bulma color classes. Here, each button demonstrates a different color:\n\n```tsx live\n<Buttons>\n <Button color=\"primary\">Primary</Button>\n <Button color=\"link\">Link</Button>\n <Button color=\"info\">Info</Button>\n <Button color=\"success\">Success</Button>\n <Button color=\"warning\">Warning</Button>\n <Button color=\"danger\">Danger</Button>\n <Button color=\"black\">Black</Button>\n <Button color=\"white\">White</Button>\n</Buttons>\n```\n\n### Background Color\n\nComponents expose this helper as `bgColor` (the hook's own parameter is `backgroundColor`). Pair it with a text color that keeps the label readable on each background:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" textColor=\"white\">\n Primary\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"link\" textColor=\"white\">\n Link\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"info\" textColor=\"white\">\n Info\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"success\" textColor=\"white\">\n Success\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"warning\" textColor=\"black\">\n Warning\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"danger\" textColor=\"white\">\n Danger\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"black\" textColor=\"white\">\n Black\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"white\" textColor=\"black\">\n White\n </Box>\n </Column>\n</Columns>\n```\n\n### Scheme Backgrounds and `bulmaHelperStyles`\n\nThe hook returns a third member, `bulmaHelperStyles`, alongside `bulmaHelperClasses` and `rest`. It is `undefined` for every input except a scheme `backgroundColor` (`scheme-main`, `scheme-main-bis`, `scheme-main-ter`, `scheme-invert`, `scheme-invert-bis`, `scheme-invert-ter`): Bulma ships no `has-background-scheme-*` classes, so those values emit no class and instead surface here as a dark-mode-safe inline style tracking Bulma's scheme CSS variables.\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n color: 'primary',\n backgroundColor: 'scheme-main-bis',\n id: 'band1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, bulmaHelperStyles, rest });\n // bulmaHelperClasses: 'has-text-primary'\n // bulmaHelperStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }\n // rest: { id: 'band1' }\n}\n```\n\nPut it on your element with `mergeBulmaStyles`, which merges the helper style with a user-supplied `style` prop (the user style wins, and the result is `undefined` when both are absent so the DOM stays untouched):\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n backgroundColor: 'scheme-main-bis',\n p: '4',\n });\n\n return (\n <div\n {...rest}\n className={classNames('custom-band', bulmaHelperClasses)}\n style={mergeBulmaStyles(bulmaHelperStyles, undefined)}\n >\n A dark-mode-safe surface with zero custom CSS\n </div>\n );\n}\n```\n\nIn a real component, destructure `style` out of your own props and pass it as `mergeBulmaStyles`'s second argument (as `Section` does) — if `style` stays in the object you spread, whichever comes later in JSX silently replaces the other instead of merging.\n\n### Color Shade\n\n`colorShade` refines the **text color** — it pairs with the hook's `color` prop (exposed as `textColor` on components, where `color` is the component's own modifier). Here, each line steps through the primary palette:\n\n```tsx live\n<>\n <Paragraph textColor=\"primary\" colorShade=\"10\" textWeight=\"semibold\">\n Primary 10\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"30\" textWeight=\"semibold\">\n Primary 30\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"60\" textWeight=\"semibold\">\n Primary 60\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"90\" textWeight=\"semibold\">\n Primary 90\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"invert\" textWeight=\"semibold\">\n Primary Invert\n </Paragraph>\n</>\n```\n\n### Background Color Shade\n\nBackground shades use their own prop: `backgroundColorShade` pairs with `backgroundColor`, independently of `colorShade` (which pairs with the text color). Low shade numbers are dark and high numbers are light, so dark shades get light text and light shades get dark text to keep each label readable:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"10\" textColor=\"white\">\n Primary 10\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"30\" textColor=\"white\">\n Primary 30\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"60\" textColor=\"black\">\n Primary 60\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"90\" textColor=\"black\">\n Primary 90\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"invert\" textColor=\"white\">\n Primary Invert\n </Box>\n </Column>\n</Columns>\n```\n\nBecause the two shade props are independent, you can shade the text and the background at the same time — a dark background shade with a light text shade of the same color reads well in both themes:\n\n```tsx live\n<Box\n bgColor=\"primary\"\n backgroundColorShade=\"15\"\n textColor=\"primary\"\n colorShade=\"85\"\n>\n Primary text shade 85 on a primary background shade 15\n</Box>\n```\n\n### Margin\n\nUse margin props to add spacing. Here, margin is applied to buttons, and to a row of buttons using the `Buttons` component:\n\n```tsx live\n<>\n <Buttons>\n <Button>Left</Button>\n <Button m=\"4\">Margin 4</Button>\n <Button>Right</Button>\n </Buttons>\n <Buttons mt=\"5\" mb=\"5\">\n <Button>Top/Bottom Margin</Button>\n <Button>Row 2</Button>\n </Buttons>\n</>\n```\n\n### Gap\n\n`gap` puts space between the children of a flex or grid container, and `columnGap` and `rowGap` set one axis. Each whole step is 0.5rem, so `gap=\"2\"` is 1rem and `gap=\"8\"` is 4rem, with half steps such as `\"1.5\"` between them. That is not the margin scale, where `m=\"2\"` is 0.5rem. A step can also be written as a number (`gap={2}`).\n\nThe helpers set the CSS `gap`, which does nothing unless the element lays its children out as flex or grid. Pair them with `display=\"flex\"` or `display=\"grid\"`, or use them on a component that already is one, such as `Buttons` or `Tags`, where they replace the spacing Bulma gives it:\n\n```tsx live\n<>\n <Block display=\"flex\" flexWrap=\"wrap\" gap=\"2\">\n <Tag color=\"primary\">One</Tag>\n <Tag color=\"primary\">Two</Tag>\n <Tag color=\"primary\">Three</Tag>\n </Block>\n <Block display=\"flex\" flexDirection=\"column\" gap=\"0.5\">\n <Tag color=\"info\">A column</Tag>\n <Tag color=\"info\">with a half step</Tag>\n </Block>\n <Buttons gap=\"1\">\n <Button>Tighter</Button>\n <Button>than Bulma's</Button>\n <Button>default</Button>\n </Buttons>\n</>\n```\n\n`gapless` removes the gap, the shortcut for `gap=\"0\"`; when both are set, `gap` wins. `columnGap` and `rowGap` win on their own axis over `gap` and `gapless`, so `gap=\"4\" rowGap=\"1\"` spaces the columns 2rem apart and the rows 0.5rem.\n\n`Grid` takes `gap`, `columnGap` and `rowGap` as its own props and renders the same classes. `Columns` keeps its own `gap`, the columns gutter, which takes whole steps; see [Columns](https://bestax.io/docs/api/columns).\n\n### Text Size\n\nApply `textSize` to Notifications to illustrate different sizes:\n\n```tsx live\n<>\n <Notification textSize=\"1\">Size 1</Notification>\n <Notification textSize=\"3\">Size 3</Notification>\n <Notification textSize=\"5\">Size 5</Notification>\n <Notification textSize=\"7\">Size 7</Notification>\n</>\n```\n\n### Text Align\n\nApply `textAlign` to a Box to illustrate text alignment:\n\n```tsx live\n<>\n <Box textAlign=\"centered\">Centered text</Box>\n <Box textAlign=\"right\">Right aligned text</Box>\n <Box textAlign=\"left\">Left aligned text</Box>\n</>\n```\n\n### Text Transform\n\nApply `textTransform` to a Content tag with a paragraph of the Declaration of Independence:\n\n```tsx live\n<>\n <Box>\n <Content textTransform=\"uppercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"lowercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"capitalized\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"italic\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Text Weight\n\nApply `textWeight` to Content tags to illustrate different font weights:\n\n```tsx live\n<>\n <Box>\n <Content textWeight=\"light\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"normal\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"medium\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"bold\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Font Family\n\nUse Content blocks with different font families:\n\n```tsx live\n<>\n <Box>\n <Content fontFamily=\"sans-serif\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"monospace\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"primary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"secondary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"code\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Visibility\n\nShow three buttons, one hidden, one screen-reader only:\n\n```tsx live\n<Buttons>\n <Button visibility=\"hidden\">Hidden</Button>\n <Button visibility=\"sr-only\">Screen Reader Only</Button>\n <Button>Visible</Button>\n</Buttons>\n```\n\n### Overflow\n\nShow a Box with clipped overflow:\n\n```tsx live\n<Box overflow=\"clipped\" style={{ width: 200, height: 50 }}>\n This is a very long line of text that will be clipped and not overflow the\n box.\n</Box>\n```\n\n`overflow` also takes the CSS keywords Bulma has helpers for (`auto`, `clip`, `hidden`, `scroll`, `visible`), and `overflowX` and `overflowY` set one axis. Beside `overflow`, an axis prop wins on its own axis and `overflow` sets the other, with `clipped` counting as `hidden`, so `overflow=\"hidden\" overflowY=\"auto\"` clips sideways and scrolls down.\n\nHere an aspect ratio fixes the height and the list scrolls inside it. A region that scrolls needs to be reachable from the keyboard, so the example gives it `tabIndex={0}`, a `region` role and a name.\n\n```tsx live\n<Box\n aspectRatio=\"3by1\"\n overflowY=\"auto\"\n tabIndex={0}\n role=\"region\"\n aria-label=\"Scrolling list\"\n>\n {Array.from({ length: 20 }, (_, i) => (\n <p key={i}>Line {i + 1} of a list longer than the box.</p>\n ))}\n</Box>\n```\n\nWithout `overflowY` the box would grow to fit the list, because an aspect ratio gives way to content that does not fit.\n\n### Overlay\n\n`overlay` is `position: absolute` with `top`, `right`, `bottom` and `left` at 0, so it covers the nearest positioned ancestor. The [position](https://bestax.io/docs/api/helpers/usebulmaclasses#position) helpers set `position` with `!important`, so a `pos` or `relative` beside `overlay` replaces the `absolute` and keeps the zero offsets. `overlay pos=\"fixed\"` covers the viewport instead. `sticky`, `relative` and `static` put the element back in the normal flow, where it covers nothing, and a sticky one sticks at every edge of its scroll container.\n\nShow an overlay (toggle with button click):\n\n```tsx\nfunction OverlayExample() {\n const [show, setShow] = useState(false);\n return (\n <Box overlay={show}>\n <Button onClick={() => setShow(s => !s)}>\n {show ? 'Hide Overlay' : 'Show Overlay'}\n </Button>\n </Box>\n );\n}\n```\n\n### Interaction\n\nShow text in a Box with `unselectable`, and another Box with `clickable`. `clickable` adds no role, tab stop or keyboard handling, so an element people click should still be a `<button>` or a link:\n\n```tsx live\n<>\n <Box interaction=\"unselectable\">This text cannot be selected.</Box>\n <Box interaction=\"clickable\">This box shows a pointer cursor.</Box>\n</>\n```\n\n### Cursor\n\nUse the `cursor` prop to set the cursor style. `'pointer'` reuses Bulma's `is-clickable` class, while `'help'` uses the project-level `is-cursor-help` class:\n\n```tsx live\n<>\n <Box cursor=\"pointer\">Cursor: pointer (uses is-clickable)</Box>\n <Box cursor=\"help\">Cursor: help</Box>\n</>\n```\n\n### Radius\n\n`radiusless` removes the radius; `small`, `normal`, `large` and `rounded` set one from Bulma's radius scale:\n\n```tsx live\n<Buttons>\n <Button radius=\"radiusless\">Radiusless</Button>\n <Button radius=\"small\">Small</Button>\n <Button radius=\"normal\">Normal</Button>\n <Button radius=\"large\">Large</Button>\n <Button radius=\"rounded\">Rounded</Button>\n</Buttons>\n```\n\nThe class goes on the component's root element, so where an inner element draws the radius, such as the `<img>` inside `Image`, that element keeps its own. The sizes are not `!important`, unlike `radiusless`, so a component rule more specific than one class still wins: an `isRounded` control stays a pill, and a joined addon keeps its square inner corners.\n\n### Shadowless\n\nShow a Box with `shadowless`:\n\n```tsx live\n<Box shadow=\"shadowless\">This box has no shadow.</Box>\n```\n\n### ClassName\n\nShow a Message with a custom className:\n\n```tsx live\n<Message className=\"custom-message\">\n This message uses a custom className.\n</Message>\n```\n\n### Clearfix\n\nShow containers with and without clearfix to demonstrate the importance of clearing floated elements:\n\n```tsx live\n<>\n <Box>\n <Title size=\"6\">Without clearfix (container collapses)</Title>\n <Notification color=\"danger\">\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n\n <Box>\n <Title size=\"6\">With clearfix (container wraps its floats)</Title>\n <Notification color=\"success\" clearfix>\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n</>\n```\n\n### Position\n\n`pos` sets CSS `position`: `absolute`, `fixed`, `relative`, `static` or `sticky`. It is named `pos` because several components already have a `position` prop of their own, for where they place a popup or a toast. `relative` is the older shortcut for `pos=\"relative\"` and still works; when both are set, `pos` wins. Beside `overlay`, a `pos` or `relative` replaces the overlay's `absolute` and keeps its zero offsets; see [Overlay](https://bestax.io/docs/api/helpers/usebulmaclasses#overlay).\n\nShow a container with relative positioning that provides context for an absolutely positioned child. The helpers set `position` and nothing else, so the child keeps its `top` and `right` offsets inline:\n\n```tsx live\n<Notification pos=\"relative\" pb=\"6\" color=\"info\">\n <Span>This container has position: relative</Span>\n <Tag\n color=\"primary\"\n size=\"medium\"\n pos=\"absolute\"\n style={{ top: '1rem', right: '1rem' }}\n >\n Absolutely positioned child\n </Tag>\n</Notification>\n```\n\n`pos=\"sticky\"` needs an offset in the same way, and does nothing until it has one.\n\n### Aspect Ratio\n\n`aspectRatio` fixes an element's width-to-height ratio to one of Bulma's ratios, such as `1by1`, `4by3` or `16by9`, or a portrait one such as `9by16`. The full set is in [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props). The height follows the width:\n\n```tsx live\n<Columns>\n <Column>\n <Notification color=\"primary\" aspectRatio=\"1by1\">\n 1by1\n </Notification>\n </Column>\n <Column>\n <Notification color=\"info\" aspectRatio=\"4by3\">\n 4by3\n </Notification>\n </Column>\n <Column>\n <Notification color=\"success\" aspectRatio=\"16by9\">\n 16by9\n </Notification>\n </Column>\n</Columns>\n```\n\nOn `Image`, use its own `size` ratios instead, which also fit the picture to the box.\n\n---\n\n### Skeleton Examples\n\nThe `skeleton` prop applies Bulma's skeleton loading effect. [Skeleton's accessibility notes](https://bestax.io/docs/api/elements/skeleton#accessibility) cover it too, reduced motion and forced colors included. In short, hide a skeleton from screen readers, and take a skeleton control out of the tab order. Here are examples for each component:\n\n#### Skeleton Button\n\n```tsx live\n<Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton Button\n</Button>\n```\n\n#### Skeleton Buttons Group\n\n```tsx live\n<Buttons>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n</Buttons>\n```\n\n#### Skeleton Icon\n\n```tsx live\n<Icon name=\"star\" skeleton />\n```\n\n#### Skeleton Image\n\n> A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder.\n\n```tsx live\n<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />\n```\n\n#### Skeleton Notification\n\n```tsx live\n<Notification skeleton aria-hidden=\"true\">\n Skeleton notification message.\n</Notification>\n```\n\n#### Skeleton Tag\n\n```tsx live\n<Tag skeleton aria-hidden=\"true\">\n Skeleton Tag\n</Tag>\n```\n\n#### Skeleton Title\n\n```tsx live\n<Title skeleton aria-hidden=\"true\" size=\"2\">\n Skeleton Title\n</Title>\n```\n\n#### Skeleton SubTitle\n\n```tsx live\n<SubTitle skeleton aria-hidden=\"true\" size=\"4\">\n Skeleton SubTitle\n</SubTitle>\n```\n\n#### Skeleton Input\n\n```tsx live\n<Input skeleton tabIndex={-1} aria-hidden=\"true\" placeholder=\"Skeleton Input\" />\n```\n\n#### Skeleton TextArea\n\n```tsx live\n<TextArea\n skeleton\n tabIndex={-1}\n aria-hidden=\"true\"\n placeholder=\"Skeleton TextArea\"\n rows={3}\n/>\n```\n\n---\n\n## API\n\n```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.\n\n---\n\n## Composable Mini-Hooks\n\n`useBulmaClasses` remains the everything-hook — it is what most bestax-bulma components use internally, and it covers the full helper prop surface with zero behavior change. If you are building a custom component that only needs a slice of that surface, you can reach for one of seven composable mini hooks instead. Each mini hook accepts just its own group of props and returns a plain class string (except `useColorStyles`, which returns an inline style object or `undefined`), which you can combine with the [`classNames`](https://bestax.io/docs/api/helpers/classnames) utility.\n\n| Hook | Props Covered | Returns |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `useColorClasses` | `color`, `colorShade`, `backgroundColor`, `backgroundColorShade` | Text and background color classes, including palette shades |\n| `useColorStyles` | `backgroundColor` (scheme values) | `{ backgroundColor: 'var(--bulma-scheme-*)' }` for a scheme background, `undefined` otherwise — the source of `bulmaHelperStyles` |\n| `useSpacingClasses` | `m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`, `gap`, `columnGap`, `rowGap`, `gapless` | Margin, padding and gap classes |\n| `useTypographyClasses` | `textSize`, `textAlign`, `textTransform`, `textWeight`, `fontFamily`, `viewport`, plus `textSize{Mobile..Fullhd}`, `textAlign{Mobile..Fullhd}` | Typography classes, including responsive size/alignment variants |\n| `useVisibilityClasses` | `display`, `visibility`, `viewport`, plus `display{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}`, `visibility{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}` | Display and visibility classes (this hook owns all display emission) |\n| `useFlexboxClasses` | `flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`, `alignSelf`, `flexGrow`, `flexShrink` | Flexbox classes; container classes are only emitted when a `display`/`display{Viewport}` prop is `flex`/`inline-flex` or the second argument is `{ flexContainer: true }`, item classes (`alignSelf`, `flexGrow`, `flexShrink`) always emit |\n| `useOtherClasses` | `float`, `overflow`, `overflowX`, `overflowY`, `overlay`, `interaction`, `cursor`, `radius`, `shadow`, `responsive`, `skeleton`, `clearfix`, `pos`, `relative`, `fullHeight`, `aspectRatio` | Miscellaneous utility classes |\n\nAll seven hooks (plus `classNames` and `mergeBulmaStyles`) are exported from the package root:\n\n```tsx\nimport {\n useColorClasses,\n useColorStyles,\n useSpacingClasses,\n classNames,\n mergeBulmaStyles,\n} from '@allxsmith/bestax-bulma';\n```\n\nHere is a small custom component that only needs color and spacing helpers:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function PriceTag({\n color,\n backgroundColor,\n backgroundColorShade,\n m,\n children,\n }: BulmaClassesProps & { children?: React.ReactNode }) {\n const colorClasses = useColorClasses({\n color,\n backgroundColor,\n backgroundColorShade,\n });\n const spacingClasses = useSpacingClasses({ m });\n return (\n <span className={classNames('tag', colorClasses, spacingClasses)}>\n {children}\n </span>\n );\n }\n\n return (\n <div>\n <PriceTag color=\"white\" backgroundColor=\"success\" m=\"2\">\n $19.99\n </PriceTag>\n <PriceTag\n color=\"white\"\n backgroundColor=\"danger\"\n backgroundColorShade=\"dark\"\n m=\"2\"\n >\n $49.99\n </PriceTag>\n </div>\n );\n}\n```\n\n:::note useFlexboxClasses and display\n\n`useFlexboxClasses` only emits container classes (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) when a `display` or `display{Viewport}` prop is `flex` or `inline-flex` — it reads those display props for gating but never emits the display class itself. Pair it with `useVisibilityClasses` (which owns display emission), or just use `useBulmaClasses`.\n\nFor an element whose own stylesheet makes it a flex container, pass `{ flexContainer: true }` as the second argument (to either hook), and the container classes emit with no `display` prop:\n\n```tsx\nconst flexboxClasses = useFlexboxClasses(\n { alignItems: 'center' },\n { flexContainer: true }\n);\n// 'is-align-items-center'\n```\n\n:::\n\n---\n\n## Supported Props\n\nBelow is the full list of supported props, derived from the `BulmaClassesProps` TypeScript definition:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| `color` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, `'black'`, `'black-bis'`, `'black-ter'`, `'grey-darker'`, `'grey-dark'`, `'grey'`, `'grey-light'`, `'grey-lighter'`, `'white'`, `'white-bis'`, `'white-ter'`, `'light'`, `'dark'`, `'inherit'`, `'current'` | `has-text-primary`, `has-text-grey-dark`, `has-text-inherit` |\n| `backgroundColor` | Same as `color`, plus the scheme values `'scheme-main'`, `'scheme-main-bis'`, `'scheme-main-ter'`, `'scheme-invert'`, `'scheme-invert-bis'`, `'scheme-invert-ter'` | `has-background-warning`; scheme values emit no class — they return as the `bulmaHelperStyles` inline style |\n| `colorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-text-primary-25` |\n| `backgroundColorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-background-info-dark` |\n| `m` | `'0'..'6'`, `'auto'` | `m-4`, `m-auto` |\n| `mt` | `'0'..'6'`, `'auto'` | `mt-2` |\n| `mr` | `'0'..'6'`, `'auto'` | `mr-6` |\n| `mb` | `'0'..'6'`, `'auto'` | `mb-0` |\n| `ml` | `'0'..'6'`, `'auto'` | `ml-auto` |\n| `mx` | `'0'..'6'`, `'auto'` | `mx-2` |\n| `my` | `'0'..'6'`, `'auto'` | `my-5` |\n| `p` | `'0'..'6'`, `'auto'` | `p-3`, `p-auto` |\n| `pt` | `'0'..'6'`, `'auto'` | `pt-1` |\n| `pr` | `'0'..'6'`, `'auto'` | `pr-6` |\n| `pb` | `'0'..'6'`, `'auto'` | `pb-0` |\n| `pl` | `'0'..'6'`, `'auto'` | `pl-4` |\n| `px` | `'0'..'6'`, `'auto'` | `px-1` |\n| `py` | `'0'..'6'`, `'auto'` | `py-6` |\n| `gap` | `'0'..'8'` in half steps, or a number | `is-gap-1.5` |\n| `columnGap` | Same as `gap` | `is-column-gap-4` |\n| `rowGap` | Same as `gap` | `is-row-gap-0.5` |\n| `gapless` | `true` | `is-gapless` |\n| `textSize` | `'1'..'7'` | `is-size-3` |\n| `textAlign` | `'centered'`, `'justified'`, `'left'`, `'right'` | `has-text-centered` |\n| `textTransform` | `'capitalized'`, `'lowercase'`, `'uppercase'`, `'italic'` | `is-uppercase`, `is-italic` |\n| `textWeight` | `'light'`, `'normal'`, `'medium'`, `'semibold'`, `'bold'` | `has-text-weight-bold` |\n| `fontFamily` | `'sans-serif'`, `'monospace'`, `'primary'`, `'secondary'`, `'code'` | `is-family-monospace` |\n| `display` | `'block'`, `'flex'`, `'inline'`, `'inline-block'`, `'inline-flex'`, `'grid'`, `'none'` | `is-flex`, `is-inline-block`, `is-grid`, `is-hidden` |\n| `visibility` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden`, `is-sr-only`, `is-invisible` |\n| `flexDirection` | `'row'`, `'row-reverse'`, `'column'`, `'column-reverse'` | `is-flex-direction-row` |\n| `flexWrap` | `'nowrap'`, `'wrap'`, `'wrap-reverse'` | `is-flex-wrap-nowrap` |\n| `justifyContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'start'`, `'end'`, `'left'`, `'right'` | `is-justify-content-center` |\n| `alignContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'stretch'` | `is-align-content-stretch` |\n| `alignItems` | `'stretch'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'start'`, `'end'` | `is-align-items-center` |\n| `alignSelf` | `'auto'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'stretch'` | `is-align-self-center` |\n| `flexGrow` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-grow-1` |\n| `flexShrink` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-shrink-0` |\n| `float` | `'left'`, `'right'` | `is-pulled-left`, `is-pulled-right` |\n| `overflow` | `'clipped'`, `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-clipped`, `is-overflow-auto` |\n| `overflowX` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-x-auto` |\n| `overflowY` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-y-scroll` |\n| `overlay` | `true` | `is-overlay` |\n| `interaction` | `'unselectable'`, `'clickable'` | `is-unselectable` |\n| `cursor` | `'pointer'`, `'help'` | `is-clickable`, `is-cursor-help` |\n| `radius` | `'radiusless'`, `'small'`, `'normal'`, `'large'`, `'rounded'` | `is-radiusless`, `has-radius-large` |\n| `shadow` | `'shadowless'` | `is-shadowless` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds viewport suffix to supported properties |\n| `skeleton` | `true` | `is-skeleton` |\n| `clearfix` | `true` | `is-clearfix` |\n| `pos` | `'absolute'`, `'fixed'`, `'relative'`, `'static'`, `'sticky'` | `is-position-sticky` |\n| `relative` | `true` | `is-relative` (ignored when `pos` is set) |\n| `fullHeight` | `true` | `is-full-height` |\n| `aspectRatio` | `'1by1'`, `'5by4'`, `'4by3'`, `'3by2'`, `'5by3'`, `'16by9'`, `'2by1'`, `'3by1'`, `'4by5'`, `'3by4'`, `'2by3'`, `'3by5'`, `'9by16'`, `'1by2'`, `'1by3'` | `is-aspect-ratio-16by9` |\n\n### Viewport-Specific Properties\n\nThe following properties allow you to set different values for each viewport breakpoint:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |\n| `displayMobile` | `'block'`, `'flex'`, `'inline'`, `'grid'`, `'none'`, etc. | `is-block-mobile`, `is-flex-mobile`, `is-hidden-mobile` |\n| `displayTablet` | Same as above | `is-block-tablet`, `is-flex-tablet`, `is-hidden-tablet` |\n| `displayTabletOnly` | Same as above | `is-block-tablet-only`, `is-flex-tablet-only`, `is-hidden-tablet-only` |\n| `displayTouch` | Same as above | `is-block-touch`, `is-flex-touch`, `is-hidden-touch` |\n| `displayDesktop` | Same as above | `is-block-desktop`, `is-flex-desktop`, `is-hidden-desktop` |\n| `displayDesktopOnly` | Same as above | `is-block-desktop-only`, `is-flex-desktop-only`, `is-hidden-desktop-only` |\n| `displayWidescreen` | Same as above | `is-block-widescreen`, `is-flex-widescreen` |\n| `displayWidescreenOnly` | Same as above | `is-block-widescreen-only`, `is-flex-widescreen-only` |\n| `displayFullhd` | Same as above | `is-block-fullhd`, `is-flex-fullhd` |\n| `textSizeMobile` | `'1'..'7'` | `is-size-3-mobile`, `is-size-5-mobile` |\n| `textSizeTablet` | `'1'..'7'` | `is-size-3-tablet`, `is-size-5-tablet` |\n| `textSizeDesktop` | `'1'..'7'` | `is-size-3-desktop`, `is-size-5-desktop` |\n| `textSizeWidescreen` | `'1'..'7'` | `is-size-3-widescreen`, `is-size-5-widescreen` |\n| `textSizeFullhd` | `'1'..'7'` | `is-size-3-fullhd`, `is-size-5-fullhd` |\n| `textAlignMobile` | `'centered'`, `'left'`, `'right'`, `'justified'` | `has-text-centered-mobile`, `has-text-left-mobile` |\n| `textAlignTablet` | Same as above | `has-text-centered-tablet`, `has-text-left-tablet` |\n| `textAlignDesktop` | Same as above | `has-text-centered-desktop`, `has-text-left-desktop` |\n| `textAlignWidescreen` | Same as above | `has-text-centered-widescreen`, `has-text-left-widescreen` |\n| `textAlignFullhd` | Same as above | `has-text-centered-fullhd`, `has-text-left-fullhd` |\n| `visibilityMobile` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden-mobile`, `is-sr-only-mobile`, `is-invisible-mobile` |\n| `visibilityTablet` | Same as above | `is-hidden-tablet`, `is-sr-only-tablet`, `is-invisible-tablet` |\n| `visibilityTabletOnly` | Same as above | `is-hidden-tablet-only`, `is-sr-only-tablet-only`, `is-invisible-tablet-only` |\n| `visibilityTouch` | Same as above | `is-hidden-touch`, `is-sr-only-touch`, `is-invisible-touch` |\n| `visibilityDesktop` | Same as above | `is-hidden-desktop`, `is-sr-only-desktop`, `is-invisible-desktop` |\n| `visibilityDesktopOnly` | Same as above | `is-hidden-desktop-only`, `is-sr-only-desktop-only`, `is-invisible-desktop-only` |\n| `visibilityWidescreen` | Same as above | `is-hidden-widescreen`, `is-sr-only-widescreen`, `is-invisible-widescreen` |\n| `visibilityWidescreenOnly` | Same as above | `is-hidden-widescreen-only`, `is-sr-only-widescreen-only`, `is-invisible-widescreen-only` |\n| `visibilityFullhd` | Same as above | `is-hidden-fullhd`, `is-sr-only-fullhd`, `is-invisible-fullhd` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `clearfix` | `true` | `is-clearfix` |\n| `relative` | `true` | `is-relative` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds suffix, e.g. `-mobile`, `-desktop`, `-touch`, `-tablet-only` |\n\nThe viewport properties' ranges overlap: the tablet, desktop and widescreen ones run from their\nbreakpoint up, the touch ones cover mobile and tablet, and an `Only` property sits inside the plain\none for its breakpoint. Where two display properties overlap, Bulma's stylesheet picks the winner,\nnot the breakpoint, so `displayTablet=\"none\"` keeps an element hidden on desktop whatever\n`displayDesktop` asks. The\n[Visibility guide](https://bestax.io/docs/guides/helpers/visibility#viewport-specific-display-properties) has the\nrule and the `Only` properties that set one range alone.\n\n---\n\n### Full TypeScript Definition\n\n`BulmaClassesProps` is composed from the six group interfaces, each of which is also exported (along with the shared `BulmaViewportProps` and `BulmaDisplayProps` types) and accepted by the corresponding [mini hook](https://bestax.io/docs/api/helpers/usebulmaclasses#composable-mini-hooks). The hook's parameter is the widened `BulmaClassesPropsWithScheme` — identical to `BulmaClassesProps` except that `backgroundColor` also accepts the six `validSchemeColors` values (`BulmaColorPropsWithScheme` is the color-group equivalent, accepted by `useColorClasses` and `useColorStyles`):\n\n```ts\nexport interface BulmaClassesProps\n extends\n BulmaColorProps,\n BulmaSpacingProps,\n BulmaTypographyProps,\n BulmaVisibilityProps,\n BulmaFlexboxProps,\n BulmaOtherProps {}\n\nexport type BulmaViewportProps =\n | 'mobile'\n | 'tablet'\n | 'tablet-only'\n | 'touch'\n | 'desktop'\n | 'desktop-only'\n | 'widescreen'\n | 'widescreen-only'\n | 'fullhd';\n\nexport type BulmaDisplayProps =\n | 'block'\n | 'flex'\n | 'inline'\n | 'inline-block'\n | 'inline-flex'\n | 'grid'\n | 'none';\n\nexport interface BulmaColorProps {\n color?:\n | 'primary'\n | 'link'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'black'\n | 'black-bis'\n | 'black-ter'\n | 'grey-darker'\n | 'grey-dark'\n | 'grey'\n | 'grey-light'\n | 'grey-lighter'\n | 'white'\n | 'white-bis'\n | 'white-ter'\n | 'light'\n | 'dark'\n | 'inherit'\n | 'current';\n colorShade?:\n | '00'\n | '05'\n | '10'\n | '15'\n | '20'\n | '25'\n | '30'\n | '35'\n | '40'\n | '45'\n | '50'\n | '55'\n | '60'\n | '65'\n | '70'\n | '75'\n | '80'\n | '85'\n | '90'\n | '95'\n | 'invert'\n | 'light'\n | 'dark'\n | 'soft'\n | 'bold'\n | 'on-scheme';\n backgroundColor?: BulmaColorProps['color'];\n backgroundColorShade?: BulmaColorProps['colorShade'];\n}\n\n// The scheme-aware input accepted by useBulmaClasses, useColorClasses,\n// and useColorStyles ((typeof validSchemeColors)[number] is\n// 'scheme-main' | 'scheme-main-bis' | 'scheme-main-ter'\n// | 'scheme-invert' | 'scheme-invert-bis' | 'scheme-invert-ter'):\nexport type BulmaColorPropsWithScheme = Omit<\n BulmaColorProps,\n 'backgroundColor'\n> & {\n backgroundColor?:\n BulmaColorProps['backgroundColor'] | (typeof validSchemeColors)[number];\n};\n\nexport type BulmaClassesPropsWithScheme = Omit<\n BulmaClassesProps,\n keyof BulmaColorProps\n> &\n BulmaColorPropsWithScheme;\n\nexport interface BulmaSpacingProps {\n m?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n ml?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mx?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n my?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n p?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pl?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n px?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n py?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n gap?: BulmaGapStep;\n columnGap?: BulmaGapStep;\n rowGap?: BulmaGapStep;\n gapless?: boolean;\n}\n\n// '0' to '8' in half steps ('0', '0.5', '1', … '7.5', '8'), as strings or numbers\nexport type BulmaGapStep =\n | '0'\n | '0.5'\n | '1'\n | '1.5'\n | '2'\n | '2.5'\n | '3'\n | '3.5'\n | '4'\n | '4.5'\n | '5'\n | '5.5'\n | '6'\n | '6.5'\n | '7'\n | '7.5'\n | '8'\n | 0\n | 0.5\n | 1\n | 1.5\n | 2\n | 2.5\n | 3\n | 3.5\n | 4\n | 4.5\n | 5\n | 5.5\n | 6\n | 6.5\n | 7\n | 7.5\n | 8;\n\nexport interface BulmaTypographyProps {\n textSize?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlign?: 'centered' | 'justified' | 'left' | 'right';\n textTransform?: 'capitalized' | 'lowercase' | 'uppercase' | 'italic';\n textWeight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold';\n fontFamily?: 'sans-serif' | 'monospace' | 'primary' | 'secondary' | 'code';\n viewport?: BulmaViewportProps;\n textSizeMobile?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeTablet?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeDesktop?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeWidescreen?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeFullhd?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlignMobile?: 'centered' | 'justified' | 'left' | 'right';\n textAlignTablet?: 'centered' | 'justified' | 'left' | 'right';\n textAlignDesktop?: 'centered' | 'justified' | 'left' | 'right';\n textAlignWidescreen?: 'centered' | 'justified' | 'left' | 'right';\n textAlignFullhd?: 'centered' | 'justified' | 'left' | 'right';\n}\n\nexport interface BulmaVisibilityProps {\n display?: BulmaDisplayProps;\n visibility?: 'hidden' | 'sr-only' | 'invisible';\n viewport?: BulmaViewportProps;\n displayMobile?: BulmaDisplayProps;\n displayTablet?: BulmaDisplayProps;\n displayTabletOnly?: BulmaDisplayProps;\n displayTouch?: BulmaDisplayProps;\n displayDesktop?: BulmaDisplayProps;\n displayDesktopOnly?: BulmaDisplayProps;\n displayWidescreen?: BulmaDisplayProps;\n displayWidescreenOnly?: BulmaDisplayProps;\n displayFullhd?: BulmaDisplayProps;\n visibilityMobile?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTablet?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTabletOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTouch?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktop?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktopOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreen?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreenOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityFullhd?: 'hidden' | 'sr-only' | 'invisible';\n}\n\nexport interface BulmaFlexboxProps {\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'start'\n | 'end'\n | 'left'\n | 'right';\n alignContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'stretch';\n alignItems?:\n | 'stretch'\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'baseline'\n | 'start'\n | 'end';\n alignSelf?:\n 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n flexGrow?: '0' | '1' | '2' | '3' | '4' | '5';\n flexShrink?: '0' | '1' | '2' | '3' | '4' | '5';\n}\n\nexport interface BulmaOtherProps {\n float?: 'left' | 'right';\n overflow?: 'clipped' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowX?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowY?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overlay?: boolean;\n interaction?: 'unselectable' | 'clickable';\n cursor?: 'pointer' | 'help';\n radius?: 'radiusless' | 'small' | 'normal' | 'large' | 'rounded';\n shadow?: 'shadowless';\n responsive?: 'mobile' | 'narrow';\n skeleton?: boolean;\n clearfix?: boolean;\n pos?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';\n relative?: boolean;\n fullHeight?: boolean;\n aspectRatio?:\n | '1by1'\n | '5by4'\n | '4by3'\n | '3by2'\n | '5by3'\n | '16by9'\n | '2by1'\n | '3by1'\n | '4by5'\n | '3by4'\n | '2by3'\n | '3by5'\n | '9by16'\n | '1by2'\n | '1by3';\n}\n```\n\n---\n\n## Responsive Design\n\n### Global Viewport Property (Legacy)\n\nThe `viewport` prop applies a single viewport modifier to ALL properties that support it:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n color: 'primary',\n textAlign: 'centered',\n textSize: '4',\n viewport: 'mobile', // Applies -mobile to ALL properties\n});\n// Result: has-text-primary-mobile has-text-centered-mobile is-size-4-mobile\n```\n\n### Viewport-Specific Properties (Recommended)\n\nViewport-specific properties allow you to set **different values for each viewport**:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n // Different text sizes for each viewport\n textSizeMobile: '6', // Small on mobile\n textSizeTablet: '5', // Medium on tablet\n textSizeDesktop: '4', // Large on desktop\n\n // Different text alignment for each viewport\n textAlignMobile: 'centered', // Center on mobile\n textAlignDesktop: 'left', // Left align on desktop\n\n // Different visibility for each viewport\n visibilityMobile: 'hidden', // Hidden on mobile\n visibilityTablet: 'invisible', // Invisible from tablet up\n});\n// Result: is-size-6-mobile is-size-5-tablet is-size-4-desktop\n// has-text-centered-mobile has-text-left-desktop is-hidden-mobile is-invisible-tablet\n```\n\n### Breakpoint Reference\n\nBulma's responsive breakpoints:\n\n- **mobile**: up to 768px\n- **tablet**: 769px and above\n- **tablet-only**: 769px - 1023px (excludes desktop and above)\n- **touch**: up to 1023px (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome)\n- **desktop**: 1024px and above\n- **desktop-only**: 1024px - 1215px (excludes widescreen and above)\n- **widescreen**: 1216px and above\n- **widescreen-only**: 1216px - 1407px (excludes fullhd)\n- **fullhd**: 1408px and above\n\n`display`/`visibility` are the only property families with `*Touch`/`*TabletOnly`/`*DesktopOnly`/`*WidescreenOnly` props; other viewport-aware properties (`textSize*`, `textAlign*`) only go through `mobile`/`tablet`/`desktop`/`widescreen`/`fullhd`, though the generic `viewport` prop itself accepts all nine values for any property that reads it.\n\n### Properties That Support Viewport Modifiers\n\nOnly certain properties support responsive variants:\n\n**✅ Support Viewport Modifiers:**\n\n- Text size (`textSize`, `textSizeMobile`, `textSizeTablet`, etc.)\n- Text alignment (`textAlign`, `textAlignMobile`, `textAlignTablet`, etc.)\n- Display (`display`, `displayMobile`, `displayTablet`, `displayTabletOnly`, `displayTouch`, `displayDesktop`, `displayDesktopOnly`, `displayWidescreen`, `displayWidescreenOnly`, `displayFullhd`)\n- Visibility (`visibility`, `visibilityMobile`, `visibilityTablet`, `visibilityTabletOnly`, `visibilityTouch`, `visibilityDesktop`, `visibilityDesktopOnly`, `visibilityWidescreen`, `visibilityWidescreenOnly`, `visibilityFullhd`)\n\n**❌ Do NOT Support Viewport Modifiers:**\n\n- Spacing (`m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`)\n- Background colors (`backgroundColor`)\n- Flexbox properties (`flexDirection`, `flexWrap`, `justifyContent`, etc.)\n- Other helpers (`float`, `overflow`, `pos`, `radius`, `shadow`, `aspectRatio`, etc.)\n\n---\n\n## Notes\n\n- Any prop not recognized as a Bulma helper prop is passed through in `rest`.\n- Responsive helper props (`viewport`) suffix classes with the breakpoint (e.g., `is-size-3-mobile`).\n- You can use in combination with [`classNames`](https://bestax.io/docs/api/helpers/classnames) for more advanced use.\n\n---\n\n## See Also\n\n- [classNames helper](https://bestax.io/docs/api/helpers/classnames)\n- [Bulma Classes Reference](https://bulma.io/documentation/helpers/)\n- [Storybook: useBulmaClasses Demo](https://bestax.io/storybook/?path=/story/helpers-usebulmaclasses--default)",
200
+ "doc": "# useBulmaClasses\n\n## Overview\n\n`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props. It makes it easy to apply color, spacing, alignment, typography, flexbox, and other Bulma utility classes to your components in a type-safe, composable way. It also separates out any non-helper props for direct use on elements.\n\n---\n\n## Import\n\n```tsx\nimport { useBulmaClasses } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Usage\n\n:::info Container components pad themselves\nContainer components like `Box`, `Notification`, `Message`, and `Card` ship with Bulma's standard, pleasant padding and stack with sensible default spacing. The examples below only add margin or padding props when spacing itself is what's being demonstrated.\n:::\n\n### Basic Example\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, rest });\n // bulmaHelperClasses: 'has-text-link has-background-primary p-4 has-text-centered'\n // rest: { id: 'card1' }\n}\n```\n\nApply to your component:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return (\n <div className={classNames('custom-card', bulmaHelperClasses)} {...rest}>\n Card content\n </div>\n );\n}\n```\n\n---\n\n### Responsive Props\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n m: '2',\n textAlign: 'centered',\n viewport: 'mobile',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'has-text-link-mobile m-2-mobile has-text-centered-mobile'\n}\n```\n\n---\n\n### Touch and `-only` Viewports\n\nBeyond the five breakpoint props, `display`/`visibility` also take `touch` (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome) and the `-only` variants (`tablet-only`, `desktop-only`, `widescreen-only`), each isolating a single breakpoint band:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n displayTouch: 'none',\n displayDesktopOnly: 'flex',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-hidden-touch is-flex-desktop-only'\n}\n```\n\n```tsx live\n<Buttons>\n <Button visibilityTouch=\"hidden\">Hidden on mobile + tablet</Button>\n <Button visibilityDesktopOnly=\"invisible\">Invisible on desktop only</Button>\n <Button>Always visible</Button>\n</Buttons>\n```\n\nThe legacy `viewport` prop widens to all nine values too, so `useBulmaClasses({ display: 'flex', viewport: 'touch' })` produces `is-flex-touch`. One exception: Bulma ships no `is-size-*` classes for the three `-only` bands, so `textSize` combined with a `tablet-only`/`desktop-only`/`widescreen-only` `viewport` degrades to the base `is-size-N` (rather than emitting a dead `is-size-N-tablet-only`); `touch` and the five breakpoints are unaffected.\n\n---\n\n### Grid Display\n\n`display` also accepts `'grid'`, emitting `is-grid`:\n\n```tsx live\n<Box display=\"grid\">\n <Notification color=\"primary\" m=\"1\">\n Cell 1\n </Notification>\n <Notification color=\"info\" m=\"1\">\n Cell 2\n </Notification>\n</Box>\n```\n\n---\n\n### With Flexbox Helpers\n\nFlexbox properties are divided into two categories:\n\n#### Container Properties\n\nThese properties apply to elements with `display: flex` or `display: inline-flex`, which on most components means a `display` prop of `flex` or `inline-flex` as well. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) are flex containers already, so they take these with no `display` prop:\n\n- `flexDirection` - Direction of flex items\n- `flexWrap` - Whether items wrap\n- `justifyContent` - Alignment along main axis\n- `alignContent` - Alignment of wrapped lines\n- `alignItems` - Alignment along cross axis\n\n#### Item Properties\n\nThese properties apply to flex items (children of flex containers) and **do not require** the element itself to have `display: flex`:\n\n- `alignSelf` - Override container's alignItems for this item\n- `flexGrow` - How much the item should grow\n- `flexShrink` - How much the item should shrink\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '4',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-gap-4 is-flex is-flex-direction-column is-align-items-center is-justify-content-center'\n}\n```\n\nExample with flex items:\n\n```tsx\n// Container with display flex\n<Box display=\"flex\" alignItems=\"center\">\n {/* Items don't need display flex to use alignSelf, flexGrow, flexShrink */}\n <Button alignSelf=\"flex-start\">Start</Button>\n <Button alignSelf=\"center\" flexGrow=\"1\">\n Center & Grow\n </Button>\n <Button alignSelf=\"flex-end\" flexShrink=\"0\">\n End & No Shrink\n </Button>\n</Box>\n```\n\n---\n\n### Using with Components\n\n:::note These are illustrations, not replacements\nThe snippets below rebuild simplified components by hand purely to show how `useBulmaClasses` fits inside one. In a real app, use the library's own [Columns / Column](https://bestax.io/docs/api/columns) and [Card](https://bestax.io/docs/api/components/card) components — they already wire up `useBulmaClasses` (plus prefixes, modifiers, and more) for you.\n:::\n\n#### Columns\n\n`MyColumns` merges a caller's `className` with its own and forwards the rest of its props to `useBulmaClasses` — the `textAlign` and `textTransform` helper props below flow through `props` into the hook (producing `has-text-centered is-uppercase`), while anything the hook doesn't recognize comes back in `rest` and lands on the `<div>`:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function MyColumns({\n children,\n className,\n ...props\n }: BulmaClassesProps & React.ComponentPropsWithoutRef<'div'>) {\n const { bulmaHelperClasses, rest } = useBulmaClasses(props);\n return (\n <div\n className={classNames('columns', bulmaHelperClasses, className)}\n {...rest}\n >\n {children}\n </div>\n );\n }\n\n return (\n <MyColumns textAlign=\"centered\" textTransform=\"uppercase\">\n <div className=\"column\">\n <Notification color=\"primary\">Left</Notification>\n </div>\n <div className=\"column\">\n <Notification color=\"info\">Right</Notification>\n </div>\n </MyColumns>\n );\n}\n```\n\n#### Card\n\n```tsx live\nfunction example() {\n const props = {};\n\n const textColor = 'white';\n const bgColor = 'primary';\n const hasShadow = true;\n const className = 'custom-card';\n const children = <p>Making a custom card</p>;\n const p = '4';\n\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: textColor,\n backgroundColor: bgColor,\n p,\n ...props,\n });\n const cardClasses = classNames('card', className, bulmaHelperClasses, {\n 'is-shadowless': !hasShadow,\n });\n return (\n <div className={cardClasses} {...rest}>\n {children}\n </div>\n );\n}\n```\n\n---\n\n### Colors\n\nUse the `color` prop to apply Bulma color classes. Here, each button demonstrates a different color:\n\n```tsx live\n<Buttons>\n <Button color=\"primary\">Primary</Button>\n <Button color=\"link\">Link</Button>\n <Button color=\"info\">Info</Button>\n <Button color=\"success\">Success</Button>\n <Button color=\"warning\">Warning</Button>\n <Button color=\"danger\">Danger</Button>\n <Button color=\"black\">Black</Button>\n <Button color=\"white\">White</Button>\n</Buttons>\n```\n\n### Background Color\n\nComponents expose this helper as `bgColor` (the hook's own parameter is `backgroundColor`). Pair it with a text color that keeps the label readable on each background:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" textColor=\"white\">\n Primary\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"link\" textColor=\"white\">\n Link\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"info\" textColor=\"white\">\n Info\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"success\" textColor=\"white\">\n Success\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"warning\" textColor=\"black\">\n Warning\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"danger\" textColor=\"white\">\n Danger\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"black\" textColor=\"white\">\n Black\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"white\" textColor=\"black\">\n White\n </Box>\n </Column>\n</Columns>\n```\n\n### Scheme Backgrounds and `bulmaHelperStyles`\n\nThe hook returns a third member, `bulmaHelperStyles`, alongside `bulmaHelperClasses` and `rest`. It is `undefined` for every input except a scheme `backgroundColor` (`scheme-main`, `scheme-main-bis`, `scheme-main-ter`, `scheme-invert`, `scheme-invert-bis`, `scheme-invert-ter`): Bulma ships no `has-background-scheme-*` classes, so those values emit no class and instead surface here as a dark-mode-safe inline style tracking Bulma's scheme CSS variables.\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n color: 'primary',\n backgroundColor: 'scheme-main-bis',\n id: 'band1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, bulmaHelperStyles, rest });\n // bulmaHelperClasses: 'has-text-primary'\n // bulmaHelperStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }\n // rest: { id: 'band1' }\n}\n```\n\nPut it on your element with `mergeBulmaStyles`, which merges the helper style with a user-supplied `style` prop (the user style wins, and the result is `undefined` when both are absent so the DOM stays untouched):\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n backgroundColor: 'scheme-main-bis',\n p: '4',\n });\n\n return (\n <div\n {...rest}\n className={classNames('custom-band', bulmaHelperClasses)}\n style={mergeBulmaStyles(bulmaHelperStyles, undefined)}\n >\n A dark-mode-safe surface with zero custom CSS\n </div>\n );\n}\n```\n\nIn a real component, destructure `style` out of your own props and pass it as `mergeBulmaStyles`'s second argument (as `Section` does) — if `style` stays in the object you spread, whichever comes later in JSX silently replaces the other instead of merging.\n\n### Color Shade\n\n`colorShade` refines the **text color** — it pairs with the hook's `color` prop (exposed as `textColor` on components, where `color` is the component's own modifier). Here, each line steps through the primary palette:\n\n```tsx live\n<>\n <Paragraph textColor=\"primary\" colorShade=\"10\" textWeight=\"semibold\">\n Primary 10\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"30\" textWeight=\"semibold\">\n Primary 30\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"60\" textWeight=\"semibold\">\n Primary 60\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"90\" textWeight=\"semibold\">\n Primary 90\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"invert\" textWeight=\"semibold\">\n Primary Invert\n </Paragraph>\n</>\n```\n\n### Background Color Shade\n\nBackground shades use their own prop: `backgroundColorShade` pairs with `backgroundColor`, independently of `colorShade` (which pairs with the text color). Low shade numbers are dark and high numbers are light, so dark shades get light text and light shades get dark text to keep each label readable:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"10\" textColor=\"white\">\n Primary 10\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"30\" textColor=\"white\">\n Primary 30\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"60\" textColor=\"black\">\n Primary 60\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"90\" textColor=\"black\">\n Primary 90\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"invert\" textColor=\"white\">\n Primary Invert\n </Box>\n </Column>\n</Columns>\n```\n\nBecause the two shade props are independent, you can shade the text and the background at the same time — a dark background shade with a light text shade of the same color reads well in both themes:\n\n```tsx live\n<Box\n bgColor=\"primary\"\n backgroundColorShade=\"15\"\n textColor=\"primary\"\n colorShade=\"85\"\n>\n Primary text shade 85 on a primary background shade 15\n</Box>\n```\n\n### Margin\n\nUse margin props to add spacing. Here, margin is applied to buttons, and to a row of buttons using the `Buttons` component:\n\n```tsx live\n<>\n <Buttons>\n <Button>Left</Button>\n <Button m=\"4\">Margin 4</Button>\n <Button>Right</Button>\n </Buttons>\n <Buttons mt=\"5\" mb=\"5\">\n <Button>Top/Bottom Margin</Button>\n <Button>Row 2</Button>\n </Buttons>\n</>\n```\n\n### Gap\n\n`gap` puts space between the children of a flex or grid container, and `columnGap` and `rowGap` set one axis. Each whole step is 0.5rem, so `gap=\"2\"` is 1rem and `gap=\"8\"` is 4rem, with half steps such as `\"1.5\"` between them. That is not the margin scale, where `m=\"2\"` is 0.5rem. A step can also be written as a number (`gap={2}`).\n\nThe helpers set the CSS `gap`, which does nothing unless the element lays its children out as flex or grid. Pair them with `display=\"flex\"` or `display=\"grid\"`, or use them on a component that already is one, such as `Buttons` or `Tags`, where they replace the spacing Bulma gives it:\n\n```tsx live\n<>\n <Block display=\"flex\" flexWrap=\"wrap\" gap=\"2\">\n <Tag color=\"primary\">One</Tag>\n <Tag color=\"primary\">Two</Tag>\n <Tag color=\"primary\">Three</Tag>\n </Block>\n <Block display=\"flex\" flexDirection=\"column\" gap=\"0.5\">\n <Tag color=\"info\">A column</Tag>\n <Tag color=\"info\">with a half step</Tag>\n </Block>\n <Buttons gap=\"1\">\n <Button>Tighter</Button>\n <Button>than Bulma's</Button>\n <Button>default</Button>\n </Buttons>\n</>\n```\n\n`gapless` removes the gap, the shortcut for `gap=\"0\"`; when both are set, `gap` wins. `columnGap` and `rowGap` win on their own axis over `gap` and `gapless`, so `gap=\"4\" rowGap=\"1\"` spaces the columns 2rem apart and the rows 0.5rem.\n\n`Grid` takes `gap`, `columnGap` and `rowGap` as its own props and renders the same classes. `Columns` keeps its own `gap`, the columns gutter, which takes whole steps; see [Columns](https://bestax.io/docs/api/columns).\n\n### Text Size\n\nApply `textSize` to Notifications to illustrate different sizes:\n\n```tsx live\n<>\n <Notification textSize=\"1\">Size 1</Notification>\n <Notification textSize=\"3\">Size 3</Notification>\n <Notification textSize=\"5\">Size 5</Notification>\n <Notification textSize=\"7\">Size 7</Notification>\n</>\n```\n\n### Text Align\n\nApply `textAlign` to a Box to illustrate text alignment:\n\n```tsx live\n<>\n <Box textAlign=\"centered\">Centered text</Box>\n <Box textAlign=\"right\">Right aligned text</Box>\n <Box textAlign=\"left\">Left aligned text</Box>\n</>\n```\n\n### Text Transform\n\nApply `textTransform` to a Content tag with a paragraph of the Declaration of Independence:\n\n```tsx live\n<>\n <Box>\n <Content textTransform=\"uppercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"lowercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"capitalized\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"italic\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"underlined\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Text Weight\n\nApply `textWeight` to Content tags to illustrate different font weights:\n\n```tsx live\n<>\n <Box>\n <Content textWeight=\"light\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"normal\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"medium\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"bold\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Font Family\n\nUse Content blocks with different font families:\n\n```tsx live\n<>\n <Box>\n <Content fontFamily=\"sans-serif\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"monospace\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"primary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"secondary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"code\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Visibility\n\nShow three buttons, one hidden, one screen-reader only:\n\n```tsx live\n<Buttons>\n <Button visibility=\"hidden\">Hidden</Button>\n <Button visibility=\"sr-only\">Screen Reader Only</Button>\n <Button>Visible</Button>\n</Buttons>\n```\n\n### Overflow\n\nShow a Box with clipped overflow:\n\n```tsx live\n<Box overflow=\"clipped\" style={{ width: 200, height: 50 }}>\n This is a very long line of text that will be clipped and not overflow the\n box.\n</Box>\n```\n\n`overflow` also takes the CSS keywords Bulma has helpers for (`auto`, `clip`, `hidden`, `scroll`, `visible`), and `overflowX` and `overflowY` set one axis. Beside `overflow`, an axis prop wins on its own axis and `overflow` sets the other, with `clipped` counting as `hidden`, so `overflow=\"hidden\" overflowY=\"auto\"` clips sideways and scrolls down.\n\nHere an aspect ratio fixes the height and the list scrolls inside it. A region that scrolls needs to be reachable from the keyboard, so the example gives it `tabIndex={0}`, a `region` role and a name.\n\n```tsx live\n<Box\n aspectRatio=\"3by1\"\n overflowY=\"auto\"\n tabIndex={0}\n role=\"region\"\n aria-label=\"Scrolling list\"\n>\n {Array.from({ length: 20 }, (_, i) => (\n <p key={i}>Line {i + 1} of a list longer than the box.</p>\n ))}\n</Box>\n```\n\nWithout `overflowY` the box would grow to fit the list, because an aspect ratio gives way to content that does not fit.\n\n### Overlay\n\n`overlay` is `position: absolute` with `top`, `right`, `bottom` and `left` at 0, so it covers the nearest positioned ancestor. The [position](https://bestax.io/docs/api/helpers/usebulmaclasses#position) helpers set `position` with `!important`, so a `pos` or `relative` beside `overlay` replaces the `absolute` and keeps the zero offsets. `overlay pos=\"fixed\"` covers the viewport instead. `sticky`, `relative` and `static` put the element back in the normal flow, where it covers nothing, and a sticky one sticks at every edge of its scroll container.\n\nShow an overlay (toggle with button click):\n\n```tsx\nfunction OverlayExample() {\n const [show, setShow] = useState(false);\n return (\n <Box overlay={show}>\n <Button onClick={() => setShow(s => !s)}>\n {show ? 'Hide Overlay' : 'Show Overlay'}\n </Button>\n </Box>\n );\n}\n```\n\n### Interaction\n\nShow text in a Box with `unselectable`, and another Box with `clickable`. `clickable` adds no role, tab stop or keyboard handling, so an element people click should still be a `<button>` or a link:\n\n```tsx live\n<>\n <Box interaction=\"unselectable\">This text cannot be selected.</Box>\n <Box interaction=\"clickable\">This box shows a pointer cursor.</Box>\n</>\n```\n\n### Cursor\n\nUse the `cursor` prop to set the cursor style. `'pointer'` reuses Bulma's `is-clickable` class, while `'help'` uses the project-level `is-cursor-help` class:\n\n```tsx live\n<>\n <Box cursor=\"pointer\">Cursor: pointer (uses is-clickable)</Box>\n <Box cursor=\"help\">Cursor: help</Box>\n</>\n```\n\n### Radius\n\n`radiusless` removes the radius; `small`, `normal`, `large` and `rounded` set one from Bulma's radius scale:\n\n```tsx live\n<Buttons>\n <Button radius=\"radiusless\">Radiusless</Button>\n <Button radius=\"small\">Small</Button>\n <Button radius=\"normal\">Normal</Button>\n <Button radius=\"large\">Large</Button>\n <Button radius=\"rounded\">Rounded</Button>\n</Buttons>\n```\n\nThe class goes on the component's root element, so where an inner element draws the radius, such as the `<img>` inside `Image`, that element keeps its own. The sizes are not `!important`, unlike `radiusless`, so a component rule more specific than one class still wins: an `isRounded` control stays a pill, and a joined addon keeps its square inner corners.\n\n### Shadowless\n\nShow a Box with `shadowless`:\n\n```tsx live\n<Box shadow=\"shadowless\">This box has no shadow.</Box>\n```\n\n### ClassName\n\nShow a Message with a custom className:\n\n```tsx live\n<Message className=\"custom-message\">\n This message uses a custom className.\n</Message>\n```\n\n### Clearfix\n\nShow containers with and without clearfix to demonstrate the importance of clearing floated elements:\n\n```tsx live\n<>\n <Box>\n <Title size=\"6\">Without clearfix (container collapses)</Title>\n <Notification color=\"danger\">\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n\n <Box>\n <Title size=\"6\">With clearfix (container wraps its floats)</Title>\n <Notification color=\"success\" clearfix>\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n</>\n```\n\n### Position\n\n`pos` sets CSS `position`: `absolute`, `fixed`, `relative`, `static` or `sticky`. It is named `pos` because several components already have a `position` prop of their own, for where they place a popup or a toast. `relative` is the older shortcut for `pos=\"relative\"` and still works; when both are set, `pos` wins. Beside `overlay`, a `pos` or `relative` replaces the overlay's `absolute` and keeps its zero offsets; see [Overlay](https://bestax.io/docs/api/helpers/usebulmaclasses#overlay).\n\nShow a container with relative positioning that provides context for an absolutely positioned child. The helpers set `position` and nothing else, so the child keeps its `top` and `right` offsets inline:\n\n```tsx live\n<Notification pos=\"relative\" pb=\"6\" color=\"info\">\n <Span>This container has position: relative</Span>\n <Tag\n color=\"primary\"\n size=\"medium\"\n pos=\"absolute\"\n style={{ top: '1rem', right: '1rem' }}\n >\n Absolutely positioned child\n </Tag>\n</Notification>\n```\n\n`pos=\"sticky\"` needs an offset in the same way, and does nothing until it has one.\n\n### Aspect Ratio\n\n`aspectRatio` fixes an element's width-to-height ratio to one of Bulma's ratios, such as `1by1`, `4by3` or `16by9`, or a portrait one such as `9by16`. The full set is in [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props). The height follows the width:\n\n```tsx live\n<Columns>\n <Column>\n <Notification color=\"primary\" aspectRatio=\"1by1\">\n 1by1\n </Notification>\n </Column>\n <Column>\n <Notification color=\"info\" aspectRatio=\"4by3\">\n 4by3\n </Notification>\n </Column>\n <Column>\n <Notification color=\"success\" aspectRatio=\"16by9\">\n 16by9\n </Notification>\n </Column>\n</Columns>\n```\n\nOn `Image`, use its own `size` ratios instead, which also fit the picture to the box.\n\n---\n\n### Skeleton Examples\n\nThe `skeleton` prop applies Bulma's skeleton loading effect. [Skeleton's accessibility notes](https://bestax.io/docs/api/elements/skeleton#accessibility) cover it too, reduced motion and forced colors included. In short, hide a skeleton from screen readers, and take a skeleton control out of the tab order. Here are examples for each component:\n\n#### Skeleton Button\n\n```tsx live\n<Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton Button\n</Button>\n```\n\n#### Skeleton Buttons Group\n\n```tsx live\n<Buttons>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n</Buttons>\n```\n\n#### Skeleton Icon\n\n```tsx live\n<Icon name=\"star\" skeleton />\n```\n\n#### Skeleton Image\n\n> A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder.\n\n```tsx live\n<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />\n```\n\n#### Skeleton Notification\n\n```tsx live\n<Notification skeleton aria-hidden=\"true\">\n Skeleton notification message.\n</Notification>\n```\n\n#### Skeleton Tag\n\n```tsx live\n<Tag skeleton aria-hidden=\"true\">\n Skeleton Tag\n</Tag>\n```\n\n#### Skeleton Title\n\n```tsx live\n<Title skeleton aria-hidden=\"true\" size=\"2\">\n Skeleton Title\n</Title>\n```\n\n#### Skeleton SubTitle\n\n```tsx live\n<SubTitle skeleton aria-hidden=\"true\" size=\"4\">\n Skeleton SubTitle\n</SubTitle>\n```\n\n#### Skeleton Input\n\n```tsx live\n<Input skeleton tabIndex={-1} aria-hidden=\"true\" placeholder=\"Skeleton Input\" />\n```\n\n#### Skeleton TextArea\n\n```tsx live\n<TextArea\n skeleton\n tabIndex={-1}\n aria-hidden=\"true\"\n placeholder=\"Skeleton TextArea\"\n rows={3}\n/>\n```\n\n---\n\n## API\n\n```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.\n\n---\n\n## Composable Mini-Hooks\n\n`useBulmaClasses` remains the everything-hook — it is what most bestax-bulma components use internally, and it covers the full helper prop surface with zero behavior change. If you are building a custom component that only needs a slice of that surface, you can reach for one of seven composable mini hooks instead. Each mini hook accepts just its own group of props and returns a plain class string (except `useColorStyles`, which returns an inline style object or `undefined`), which you can combine with the [`classNames`](https://bestax.io/docs/api/helpers/classnames) utility.\n\n| Hook | Props Covered | Returns |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `useColorClasses` | `color`, `colorShade`, `backgroundColor`, `backgroundColorShade` | Text and background color classes, including palette shades |\n| `useColorStyles` | `backgroundColor` (scheme values) | `{ backgroundColor: 'var(--bulma-scheme-*)' }` for a scheme background, `undefined` otherwise — the source of `bulmaHelperStyles` |\n| `useSpacingClasses` | `m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`, `gap`, `columnGap`, `rowGap`, `gapless` | Margin, padding and gap classes |\n| `useTypographyClasses` | `textSize`, `textAlign`, `textTransform`, `textWeight`, `fontFamily`, `viewport`, plus `textSize{Mobile..Fullhd}`, `textAlign{Mobile..Fullhd}` | Typography classes, including responsive size/alignment variants |\n| `useVisibilityClasses` | `display`, `visibility`, `viewport`, plus `display{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}`, `visibility{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}` | Display and visibility classes (this hook owns all display emission) |\n| `useFlexboxClasses` | `flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`, `alignSelf`, `flexGrow`, `flexShrink` | Flexbox classes; container classes are only emitted when a `display`/`display{Viewport}` prop is `flex`/`inline-flex` or the second argument is `{ flexContainer: true }`, item classes (`alignSelf`, `flexGrow`, `flexShrink`) always emit |\n| `useOtherClasses` | `float`, `overflow`, `overflowX`, `overflowY`, `overlay`, `interaction`, `cursor`, `radius`, `shadow`, `responsive`, `skeleton`, `clearfix`, `pos`, `relative`, `fullHeight`, `aspectRatio` | Miscellaneous utility classes |\n\nAll seven hooks (plus `classNames` and `mergeBulmaStyles`) are exported from the package root:\n\n```tsx\nimport {\n useColorClasses,\n useColorStyles,\n useSpacingClasses,\n classNames,\n mergeBulmaStyles,\n} from '@allxsmith/bestax-bulma';\n```\n\nHere is a small custom component that only needs color and spacing helpers:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function PriceTag({\n color,\n backgroundColor,\n backgroundColorShade,\n m,\n children,\n }: BulmaClassesProps & { children?: React.ReactNode }) {\n const colorClasses = useColorClasses({\n color,\n backgroundColor,\n backgroundColorShade,\n });\n const spacingClasses = useSpacingClasses({ m });\n return (\n <span className={classNames('tag', colorClasses, spacingClasses)}>\n {children}\n </span>\n );\n }\n\n return (\n <div>\n <PriceTag color=\"white\" backgroundColor=\"success\" m=\"2\">\n $19.99\n </PriceTag>\n <PriceTag\n color=\"white\"\n backgroundColor=\"danger\"\n backgroundColorShade=\"dark\"\n m=\"2\"\n >\n $49.99\n </PriceTag>\n </div>\n );\n}\n```\n\n:::note useFlexboxClasses and display\n\n`useFlexboxClasses` only emits container classes (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) when a `display` or `display{Viewport}` prop is `flex` or `inline-flex` — it reads those display props for gating but never emits the display class itself. Pair it with `useVisibilityClasses` (which owns display emission), or just use `useBulmaClasses`.\n\nFor an element whose own stylesheet makes it a flex container, pass `{ flexContainer: true }` as the second argument (to either hook), and the container classes emit with no `display` prop:\n\n```tsx\nconst flexboxClasses = useFlexboxClasses(\n { alignItems: 'center' },\n { flexContainer: true }\n);\n// 'is-align-items-center'\n```\n\n:::\n\n---\n\n## Supported Props\n\nBelow is the full list of supported props, derived from the `BulmaClassesProps` TypeScript definition:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| `color` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, `'black'`, `'black-bis'`, `'black-ter'`, `'grey-darker'`, `'grey-dark'`, `'grey'`, `'grey-light'`, `'grey-lighter'`, `'white'`, `'white-bis'`, `'white-ter'`, `'light'`, `'dark'`, `'inherit'`, `'current'` | `has-text-primary`, `has-text-grey-dark`, `has-text-inherit` |\n| `backgroundColor` | Same as `color`, plus the scheme values `'scheme-main'`, `'scheme-main-bis'`, `'scheme-main-ter'`, `'scheme-invert'`, `'scheme-invert-bis'`, `'scheme-invert-ter'` | `has-background-warning`; scheme values emit no class — they return as the `bulmaHelperStyles` inline style |\n| `colorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-text-primary-25` |\n| `backgroundColorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-background-info-dark` |\n| `m` | `'0'..'6'`, `'auto'` | `m-4`, `m-auto` |\n| `mt` | `'0'..'6'`, `'auto'` | `mt-2` |\n| `mr` | `'0'..'6'`, `'auto'` | `mr-6` |\n| `mb` | `'0'..'6'`, `'auto'` | `mb-0` |\n| `ml` | `'0'..'6'`, `'auto'` | `ml-auto` |\n| `mx` | `'0'..'6'`, `'auto'` | `mx-2` |\n| `my` | `'0'..'6'`, `'auto'` | `my-5` |\n| `p` | `'0'..'6'`, `'auto'` | `p-3`, `p-auto` |\n| `pt` | `'0'..'6'`, `'auto'` | `pt-1` |\n| `pr` | `'0'..'6'`, `'auto'` | `pr-6` |\n| `pb` | `'0'..'6'`, `'auto'` | `pb-0` |\n| `pl` | `'0'..'6'`, `'auto'` | `pl-4` |\n| `px` | `'0'..'6'`, `'auto'` | `px-1` |\n| `py` | `'0'..'6'`, `'auto'` | `py-6` |\n| `gap` | `'0'..'8'` in half steps, or a number | `is-gap-1.5` |\n| `columnGap` | Same as `gap` | `is-column-gap-4` |\n| `rowGap` | Same as `gap` | `is-row-gap-0.5` |\n| `gapless` | `true` | `is-gapless` |\n| `textSize` | `'1'..'7'` | `is-size-3` |\n| `textAlign` | `'centered'`, `'justified'`, `'left'`, `'right'` | `has-text-centered` |\n| `textTransform` | `'capitalized'`, `'lowercase'`, `'uppercase'`, `'italic'`, `'underlined'` | `is-uppercase`, `is-italic` |\n| `textWeight` | `'light'`, `'normal'`, `'medium'`, `'semibold'`, `'bold'` | `has-text-weight-bold` |\n| `fontFamily` | `'sans-serif'`, `'monospace'`, `'primary'`, `'secondary'`, `'code'` | `is-family-monospace` |\n| `display` | `'block'`, `'flex'`, `'inline'`, `'inline-block'`, `'inline-flex'`, `'grid'`, `'none'` | `is-flex`, `is-inline-block`, `is-grid`, `is-hidden` |\n| `visibility` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden`, `is-sr-only`, `is-invisible` |\n| `flexDirection` | `'row'`, `'row-reverse'`, `'column'`, `'column-reverse'` | `is-flex-direction-row` |\n| `flexWrap` | `'nowrap'`, `'wrap'`, `'wrap-reverse'` | `is-flex-wrap-nowrap` |\n| `justifyContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'start'`, `'end'`, `'left'`, `'right'` | `is-justify-content-center` |\n| `alignContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'stretch'` | `is-align-content-stretch` |\n| `alignItems` | `'stretch'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'start'`, `'end'` | `is-align-items-center` |\n| `alignSelf` | `'auto'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'stretch'` | `is-align-self-center` |\n| `flexGrow` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-grow-1` |\n| `flexShrink` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-shrink-0` |\n| `float` | `'left'`, `'right'` | `is-pulled-left`, `is-pulled-right` |\n| `overflow` | `'clipped'`, `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-clipped`, `is-overflow-auto` |\n| `overflowX` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-x-auto` |\n| `overflowY` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-y-scroll` |\n| `overlay` | `true` | `is-overlay` |\n| `interaction` | `'unselectable'`, `'clickable'` | `is-unselectable` |\n| `cursor` | `'pointer'`, `'help'` | `is-clickable`, `is-cursor-help` |\n| `radius` | `'radiusless'`, `'small'`, `'normal'`, `'large'`, `'rounded'` | `is-radiusless`, `has-radius-large` |\n| `shadow` | `'shadowless'` | `is-shadowless` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds viewport suffix to supported properties |\n| `skeleton` | `true` | `is-skeleton` |\n| `clearfix` | `true` | `is-clearfix` |\n| `pos` | `'absolute'`, `'fixed'`, `'relative'`, `'static'`, `'sticky'` | `is-position-sticky` |\n| `relative` | `true` | `is-relative` (ignored when `pos` is set) |\n| `fullHeight` | `true` | `is-full-height` |\n| `aspectRatio` | `'1by1'`, `'5by4'`, `'4by3'`, `'3by2'`, `'5by3'`, `'16by9'`, `'2by1'`, `'3by1'`, `'4by5'`, `'3by4'`, `'2by3'`, `'3by5'`, `'9by16'`, `'1by2'`, `'1by3'` | `is-aspect-ratio-16by9` |\n\n### Viewport-Specific Properties\n\nThe following properties allow you to set different values for each viewport breakpoint:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |\n| `displayMobile` | `'block'`, `'flex'`, `'inline'`, `'grid'`, `'none'`, etc. | `is-block-mobile`, `is-flex-mobile`, `is-hidden-mobile` |\n| `displayTablet` | Same as above | `is-block-tablet`, `is-flex-tablet`, `is-hidden-tablet` |\n| `displayTabletOnly` | Same as above | `is-block-tablet-only`, `is-flex-tablet-only`, `is-hidden-tablet-only` |\n| `displayTouch` | Same as above | `is-block-touch`, `is-flex-touch`, `is-hidden-touch` |\n| `displayDesktop` | Same as above | `is-block-desktop`, `is-flex-desktop`, `is-hidden-desktop` |\n| `displayDesktopOnly` | Same as above | `is-block-desktop-only`, `is-flex-desktop-only`, `is-hidden-desktop-only` |\n| `displayWidescreen` | Same as above | `is-block-widescreen`, `is-flex-widescreen` |\n| `displayWidescreenOnly` | Same as above | `is-block-widescreen-only`, `is-flex-widescreen-only` |\n| `displayFullhd` | Same as above | `is-block-fullhd`, `is-flex-fullhd` |\n| `textSizeMobile` | `'1'..'7'` | `is-size-3-mobile`, `is-size-5-mobile` |\n| `textSizeTablet` | `'1'..'7'` | `is-size-3-tablet`, `is-size-5-tablet` |\n| `textSizeDesktop` | `'1'..'7'` | `is-size-3-desktop`, `is-size-5-desktop` |\n| `textSizeWidescreen` | `'1'..'7'` | `is-size-3-widescreen`, `is-size-5-widescreen` |\n| `textSizeFullhd` | `'1'..'7'` | `is-size-3-fullhd`, `is-size-5-fullhd` |\n| `textAlignMobile` | `'centered'`, `'left'`, `'right'`, `'justified'` | `has-text-centered-mobile`, `has-text-left-mobile` |\n| `textAlignTablet` | Same as above | `has-text-centered-tablet`, `has-text-left-tablet` |\n| `textAlignDesktop` | Same as above | `has-text-centered-desktop`, `has-text-left-desktop` |\n| `textAlignWidescreen` | Same as above | `has-text-centered-widescreen`, `has-text-left-widescreen` |\n| `textAlignFullhd` | Same as above | `has-text-centered-fullhd`, `has-text-left-fullhd` |\n| `visibilityMobile` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden-mobile`, `is-sr-only-mobile`, `is-invisible-mobile` |\n| `visibilityTablet` | Same as above | `is-hidden-tablet`, `is-sr-only-tablet`, `is-invisible-tablet` |\n| `visibilityTabletOnly` | Same as above | `is-hidden-tablet-only`, `is-sr-only-tablet-only`, `is-invisible-tablet-only` |\n| `visibilityTouch` | Same as above | `is-hidden-touch`, `is-sr-only-touch`, `is-invisible-touch` |\n| `visibilityDesktop` | Same as above | `is-hidden-desktop`, `is-sr-only-desktop`, `is-invisible-desktop` |\n| `visibilityDesktopOnly` | Same as above | `is-hidden-desktop-only`, `is-sr-only-desktop-only`, `is-invisible-desktop-only` |\n| `visibilityWidescreen` | Same as above | `is-hidden-widescreen`, `is-sr-only-widescreen`, `is-invisible-widescreen` |\n| `visibilityWidescreenOnly` | Same as above | `is-hidden-widescreen-only`, `is-sr-only-widescreen-only`, `is-invisible-widescreen-only` |\n| `visibilityFullhd` | Same as above | `is-hidden-fullhd`, `is-sr-only-fullhd`, `is-invisible-fullhd` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `clearfix` | `true` | `is-clearfix` |\n| `relative` | `true` | `is-relative` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds suffix, e.g. `-mobile`, `-desktop`, `-touch`, `-tablet-only` |\n\nThe viewport properties' ranges overlap: the tablet, desktop and widescreen ones run from their\nbreakpoint up, the touch ones cover mobile and tablet, and an `Only` property sits inside the plain\none for its breakpoint. Where two display properties overlap, Bulma's stylesheet picks the winner,\nnot the breakpoint, so `displayTablet=\"none\"` keeps an element hidden on desktop whatever\n`displayDesktop` asks. The\n[Visibility guide](https://bestax.io/docs/guides/helpers/visibility#viewport-specific-display-properties) has the\nrule and the `Only` properties that set one range alone.\n\n---\n\n### Full TypeScript Definition\n\n`BulmaClassesProps` is composed from the six group interfaces, each of which is also exported (along with the shared `BulmaViewportProps` and `BulmaDisplayProps` types) and accepted by the corresponding [mini hook](https://bestax.io/docs/api/helpers/usebulmaclasses#composable-mini-hooks). The hook's parameter is the widened `BulmaClassesPropsWithScheme` — identical to `BulmaClassesProps` except that `backgroundColor` also accepts the six `validSchemeColors` values (`BulmaColorPropsWithScheme` is the color-group equivalent, accepted by `useColorClasses` and `useColorStyles`):\n\n```ts\nexport interface BulmaClassesProps\n extends\n BulmaColorProps,\n BulmaSpacingProps,\n BulmaTypographyProps,\n BulmaVisibilityProps,\n BulmaFlexboxProps,\n BulmaOtherProps {}\n\nexport type BulmaViewportProps =\n | 'mobile'\n | 'tablet'\n | 'tablet-only'\n | 'touch'\n | 'desktop'\n | 'desktop-only'\n | 'widescreen'\n | 'widescreen-only'\n | 'fullhd';\n\nexport type BulmaDisplayProps =\n | 'block'\n | 'flex'\n | 'inline'\n | 'inline-block'\n | 'inline-flex'\n | 'grid'\n | 'none';\n\nexport interface BulmaColorProps {\n color?:\n | 'primary'\n | 'link'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'black'\n | 'black-bis'\n | 'black-ter'\n | 'grey-darker'\n | 'grey-dark'\n | 'grey'\n | 'grey-light'\n | 'grey-lighter'\n | 'white'\n | 'white-bis'\n | 'white-ter'\n | 'light'\n | 'dark'\n | 'inherit'\n | 'current';\n colorShade?:\n | '00'\n | '05'\n | '10'\n | '15'\n | '20'\n | '25'\n | '30'\n | '35'\n | '40'\n | '45'\n | '50'\n | '55'\n | '60'\n | '65'\n | '70'\n | '75'\n | '80'\n | '85'\n | '90'\n | '95'\n | 'invert'\n | 'light'\n | 'dark'\n | 'soft'\n | 'bold'\n | 'on-scheme';\n backgroundColor?: BulmaColorProps['color'];\n backgroundColorShade?: BulmaColorProps['colorShade'];\n}\n\n// The scheme-aware input accepted by useBulmaClasses, useColorClasses,\n// and useColorStyles ((typeof validSchemeColors)[number] is\n// 'scheme-main' | 'scheme-main-bis' | 'scheme-main-ter'\n// | 'scheme-invert' | 'scheme-invert-bis' | 'scheme-invert-ter'):\nexport type BulmaColorPropsWithScheme = Omit<\n BulmaColorProps,\n 'backgroundColor'\n> & {\n backgroundColor?:\n BulmaColorProps['backgroundColor'] | (typeof validSchemeColors)[number];\n};\n\nexport type BulmaClassesPropsWithScheme = Omit<\n BulmaClassesProps,\n keyof BulmaColorProps\n> &\n BulmaColorPropsWithScheme;\n\nexport interface BulmaSpacingProps {\n m?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n ml?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mx?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n my?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n p?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pl?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n px?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n py?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n gap?: BulmaGapStep;\n columnGap?: BulmaGapStep;\n rowGap?: BulmaGapStep;\n gapless?: boolean;\n}\n\n// '0' to '8' in half steps ('0', '0.5', '1', … '7.5', '8'), as strings or numbers\nexport type BulmaGapStep =\n | '0'\n | '0.5'\n | '1'\n | '1.5'\n | '2'\n | '2.5'\n | '3'\n | '3.5'\n | '4'\n | '4.5'\n | '5'\n | '5.5'\n | '6'\n | '6.5'\n | '7'\n | '7.5'\n | '8'\n | 0\n | 0.5\n | 1\n | 1.5\n | 2\n | 2.5\n | 3\n | 3.5\n | 4\n | 4.5\n | 5\n | 5.5\n | 6\n | 6.5\n | 7\n | 7.5\n | 8;\n\nexport interface BulmaTypographyProps {\n textSize?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlign?: 'centered' | 'justified' | 'left' | 'right';\n textTransform?:\n 'capitalized' | 'lowercase' | 'uppercase' | 'italic' | 'underlined';\n textWeight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold';\n fontFamily?: 'sans-serif' | 'monospace' | 'primary' | 'secondary' | 'code';\n viewport?: BulmaViewportProps;\n textSizeMobile?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeTablet?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeDesktop?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeWidescreen?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeFullhd?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlignMobile?: 'centered' | 'justified' | 'left' | 'right';\n textAlignTablet?: 'centered' | 'justified' | 'left' | 'right';\n textAlignDesktop?: 'centered' | 'justified' | 'left' | 'right';\n textAlignWidescreen?: 'centered' | 'justified' | 'left' | 'right';\n textAlignFullhd?: 'centered' | 'justified' | 'left' | 'right';\n}\n\nexport interface BulmaVisibilityProps {\n display?: BulmaDisplayProps;\n visibility?: 'hidden' | 'sr-only' | 'invisible';\n viewport?: BulmaViewportProps;\n displayMobile?: BulmaDisplayProps;\n displayTablet?: BulmaDisplayProps;\n displayTabletOnly?: BulmaDisplayProps;\n displayTouch?: BulmaDisplayProps;\n displayDesktop?: BulmaDisplayProps;\n displayDesktopOnly?: BulmaDisplayProps;\n displayWidescreen?: BulmaDisplayProps;\n displayWidescreenOnly?: BulmaDisplayProps;\n displayFullhd?: BulmaDisplayProps;\n visibilityMobile?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTablet?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTabletOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTouch?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktop?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktopOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreen?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreenOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityFullhd?: 'hidden' | 'sr-only' | 'invisible';\n}\n\nexport interface BulmaFlexboxProps {\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'start'\n | 'end'\n | 'left'\n | 'right';\n alignContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'stretch';\n alignItems?:\n | 'stretch'\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'baseline'\n | 'start'\n | 'end';\n alignSelf?:\n 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n flexGrow?: '0' | '1' | '2' | '3' | '4' | '5';\n flexShrink?: '0' | '1' | '2' | '3' | '4' | '5';\n}\n\nexport interface BulmaOtherProps {\n float?: 'left' | 'right';\n overflow?: 'clipped' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowX?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowY?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overlay?: boolean;\n interaction?: 'unselectable' | 'clickable';\n cursor?: 'pointer' | 'help';\n radius?: 'radiusless' | 'small' | 'normal' | 'large' | 'rounded';\n shadow?: 'shadowless';\n responsive?: 'mobile' | 'narrow';\n skeleton?: boolean;\n clearfix?: boolean;\n pos?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';\n relative?: boolean;\n fullHeight?: boolean;\n aspectRatio?:\n | '1by1'\n | '5by4'\n | '4by3'\n | '3by2'\n | '5by3'\n | '16by9'\n | '2by1'\n | '3by1'\n | '4by5'\n | '3by4'\n | '2by3'\n | '3by5'\n | '9by16'\n | '1by2'\n | '1by3';\n}\n```\n\n---\n\n## Responsive Design\n\n### Global Viewport Property (Legacy)\n\nThe `viewport` prop applies a single viewport modifier to ALL properties that support it:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n color: 'primary',\n textAlign: 'centered',\n textSize: '4',\n viewport: 'mobile', // Applies -mobile to ALL properties\n});\n// Result: has-text-primary-mobile has-text-centered-mobile is-size-4-mobile\n```\n\n### Viewport-Specific Properties (Recommended)\n\nViewport-specific properties allow you to set **different values for each viewport**:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n // Different text sizes for each viewport\n textSizeMobile: '6', // Small on mobile\n textSizeTablet: '5', // Medium on tablet\n textSizeDesktop: '4', // Large on desktop\n\n // Different text alignment for each viewport\n textAlignMobile: 'centered', // Center on mobile\n textAlignDesktop: 'left', // Left align on desktop\n\n // Different visibility for each viewport\n visibilityMobile: 'hidden', // Hidden on mobile\n visibilityTablet: 'invisible', // Invisible from tablet up\n});\n// Result: is-size-6-mobile is-size-5-tablet is-size-4-desktop\n// has-text-centered-mobile has-text-left-desktop is-hidden-mobile is-invisible-tablet\n```\n\n### Breakpoint Reference\n\nBulma's responsive breakpoints:\n\n- **mobile**: up to 768px\n- **tablet**: 769px and above\n- **tablet-only**: 769px - 1023px (excludes desktop and above)\n- **touch**: up to 1023px (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome)\n- **desktop**: 1024px and above\n- **desktop-only**: 1024px - 1215px (excludes widescreen and above)\n- **widescreen**: 1216px and above\n- **widescreen-only**: 1216px - 1407px (excludes fullhd)\n- **fullhd**: 1408px and above\n\n`display`/`visibility` are the only property families with `*Touch`/`*TabletOnly`/`*DesktopOnly`/`*WidescreenOnly` props; other viewport-aware properties (`textSize*`, `textAlign*`) only go through `mobile`/`tablet`/`desktop`/`widescreen`/`fullhd`, though the generic `viewport` prop itself accepts all nine values for any property that reads it.\n\n### Properties That Support Viewport Modifiers\n\nOnly certain properties support responsive variants:\n\n**✅ Support Viewport Modifiers:**\n\n- Text size (`textSize`, `textSizeMobile`, `textSizeTablet`, etc.)\n- Text alignment (`textAlign`, `textAlignMobile`, `textAlignTablet`, etc.)\n- Display (`display`, `displayMobile`, `displayTablet`, `displayTabletOnly`, `displayTouch`, `displayDesktop`, `displayDesktopOnly`, `displayWidescreen`, `displayWidescreenOnly`, `displayFullhd`)\n- Visibility (`visibility`, `visibilityMobile`, `visibilityTablet`, `visibilityTabletOnly`, `visibilityTouch`, `visibilityDesktop`, `visibilityDesktopOnly`, `visibilityWidescreen`, `visibilityWidescreenOnly`, `visibilityFullhd`)\n\n**❌ Do NOT Support Viewport Modifiers:**\n\n- Spacing (`m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`)\n- Background colors (`backgroundColor`)\n- Flexbox properties (`flexDirection`, `flexWrap`, `justifyContent`, etc.)\n- Other helpers (`float`, `overflow`, `pos`, `radius`, `shadow`, `aspectRatio`, etc.)\n\n---\n\n## Notes\n\n- Any prop not recognized as a Bulma helper prop is passed through in `rest`.\n- Responsive helper props (`viewport`) suffix classes with the breakpoint (e.g., `is-size-3-mobile`).\n- You can use in combination with [`classNames`](https://bestax.io/docs/api/helpers/classnames) for more advanced use.\n\n---\n\n## See Also\n\n- [classNames helper](https://bestax.io/docs/api/helpers/classnames)\n- [Bulma Classes Reference](https://bulma.io/documentation/helpers/)\n- [Storybook: useBulmaClasses Demo](https://bestax.io/storybook/?path=/story/helpers-usebulmaclasses--default)",
201
201
  "parts": [],
202
202
  "cssVars": [],
203
203
  "helperProps": [
@@ -436,9 +436,9 @@
436
436
  },
437
437
  {
438
438
  "name": "textTransform",
439
- "type": "'capitalized' | 'lowercase' | 'uppercase' | 'italic'",
439
+ "type": "'capitalized' | 'lowercase' | 'uppercase' | 'italic' | 'underlined'",
440
440
  "default": null,
441
- "description": "Text transformation (e.g., 'uppercase', 'italic').",
441
+ "description": "Text transformation (e.g., 'uppercase', 'italic'). `'underlined'` draws an underline, which a link inside a sentence needs in Bulma's default colors, so that more than its color sets it apart from the words around it (WCAG 1.4.1). It takes one value, so to underline text that also takes another transform, add Bulma's `is-underlined` class through `className`, with your class prefix in front if you set one.",
442
442
  "required": false,
443
443
  "inherited": false,
444
444
  "deprecated": false
@@ -110,7 +110,7 @@ A preview that shows up on hover (a profile card on a username, a summary on a l
110
110
  keyboard focus after a delay, lets the pointer move onto the card, closes on Escape, and ignores
111
111
  touch unless `openOnTap` is on, which suits only a trigger with no tap action of its own (a
112
112
  `Button` with no `onClick`, never a link). Its `trigger` has to be a link or a button, and a trigger in running text takes
113
- `appendToBody`. A form never goes in one; that's `Popover`.
113
+ `appendToBody`, and a link trigger there takes `textTransform="underlined"` so more than its color sets it apart. A form never goes in one; that's `Popover`.
114
114
 
115
115
  A menu of actions that opens on a right-click (Rename and Delete on a table row, Archive on a
116
116
  card) is `ContextMenu`: use it rather than an `onContextMenu` handler that positions a
@@ -202,7 +202,7 @@ translate each declaration:
202
202
  | `backgroundColor: '#…'` | `bgColor` (same palette) |
203
203
  | `fontSize: …` | `textSize="1"`…`"7"` (`1` largest). On `Title`/`SubTitle`, `as` sets the level and `size` picks it too, so an `<h3>` at size 4 is `as="h3" textSize="4"` |
204
204
  | `fontWeight: …` | `textWeight`: `light`, `normal`, `medium`, `semibold`, `bold` |
205
- | `textTransform`, italics | `textTransform`: `uppercase`, `lowercase`, `capitalized`, `italic` |
205
+ | `textTransform`, italics, underline | `textTransform`: `uppercase`, `lowercase`, `capitalized`, `italic`, `underlined` |
206
206
  | `display: 'flex'` + flex properties | same-named props: `display="flex"`, `flexDirection`, `justifyContent`, `alignItems`, `flexWrap` |
207
207
  | `height: '100%'` on a flex child | `flexGrow="1"` |
208
208
  | `display: 'none'` | `visibility="hidden"`, or responsive `display*` props (`displayMobile`, `displayTablet`, …) |
@@ -76,7 +76,8 @@ Centered; a collection of items → Card grid. For mixed requests, pick the domi
76
76
  panel without a `Popover.Header` needs `ariaLabel`),
77
77
  `HoverCard trigger={<Link href="…">…</Link>}` for a preview on hover or keyboard focus
78
78
  (`trigger` is one link or button, cloned the same way; the card's content goes straight in as
79
- children with no sub-components; a trigger inside a `Paragraph` needs `appendToBody`; hover
79
+ children with no sub-components; a trigger inside a `Paragraph` needs `appendToBody`, and a
80
+ link trigger there `textTransform="underlined"`; hover
80
81
  and focus only unless `openOnTap` is set, which suits only a trigger with no tap action of its
81
82
  own, such as a `Button` with no `onClick`; on touch a link trigger just follows the link, so
82
83
  what the card shows must be on that page too, and a form is a `Popover`),
@@ -247,6 +248,10 @@ Centered; a collection of items → Card grid. For mixed requests, pick the domi
247
248
  - Link lists (footer nav, sidebars): a bare `UnorderedList` of `ListItem`s is already
248
249
  marker-less and flush — Bulma's reset unstyles `ul` — so no prop or CSS is needed;
249
250
  bullets appear only inside `Content`.
251
+ - A `Link` inside running text (a sentence in a `Paragraph` or `Content`) takes
252
+ `textTransform="underlined"`: outside a `Notification` or `Message`, Bulma draws links with no
253
+ underline, so in a sentence only its color sets it apart (WCAG 1.4.1). A link that stands on
254
+ its own (nav, a link list, a button row) doesn't take it.
250
255
  - `Navbar.Burger`/`Navbar.Menu` are **controlled** — wire the same `active` state to both:
251
256
  `active` on `Navbar.Menu` shows/hides the mobile menu, while `active` + `onClick` on
252
257
  `Navbar.Burger` make the burger toggle it and animate. Left unwired, clicking the burger
@@ -345,7 +350,7 @@ styling has no text color.
345
350
  | `backgroundColor: '#…'` | `bgColor` (same palette) |
346
351
  | `fontSize: …` | `textSize="1"`…`"7"` (`1` largest). On `Title`/`SubTitle`, `as` sets the level and `size` picks it too, so an `<h3>` at size 4 is `as="h3" textSize="4"` |
347
352
  | `fontWeight: …` | `textWeight`: `light`, `normal`, `medium`, `semibold`, `bold` |
348
- | `textTransform`, italics | `textTransform`: `uppercase`, `lowercase`, `capitalized`, `italic` |
353
+ | `textTransform`, italics, underline | `textTransform`: `uppercase`, `lowercase`, `capitalized`, `italic`, `underlined` |
349
354
  | `display: 'flex'` + flex properties | same-named props: `display="flex"`, `flexDirection`, `justifyContent`, `alignItems`, `flexWrap` |
350
355
  | `height: '100%'` on a flex child | `flexGrow="1"` |
351
356
  | `display: 'none'` | `visibility="hidden"`, or responsive `display*` props (`displayMobile`, `displayTablet`, …) |
@@ -323,12 +323,14 @@ The burger/menu is controlled state — toggle `Navbar.Burger active`/`onClick`
323
323
  flag to `Navbar.Menu active`. **A `fixed="top"` navbar requires `has-navbar-fixed-top` on `<html>`**
324
324
  (Bulma offsets the page from it); the library adds no helper. Set it statically —
325
325
  `<html class="has-navbar-fixed-top">` in `index.html` — reserving a `classList.add` effect for
326
- a navbar that mounts conditionally. **With `isSpaced`, add `has-spaced-navbar-fixed-top` too**
327
- (`<html class="has-navbar-fixed-top has-spaced-navbar-fixed-top">`): from desktop up the spaced
328
- navbar is taller than the plain class pads the page for, and there the spaced class pads it for
329
- the taller navbar, so with the plain class alone the top of the page sits under the navbar. A
330
- `fixed="bottom"` navbar takes `has-navbar-fixed-bottom`, and `has-spaced-navbar-fixed-bottom`
331
- beside it with `isSpaced`.
326
+ a navbar that mounts conditionally. **With `isSpaced`, the page needs more room from desktop up**,
327
+ where the spaced navbar is taller than the plain class pads for. Bulma's
328
+ `has-spaced-navbar-fixed-top` is meant to give it, but it reads `--bulma-navbar-padding-vertical`,
329
+ which Bulma sets on the navbar only, so on its own it sets the page's padding to 0. Add the class
330
+ and register the variable on `:root` with the navbar's padding
331
+ (`:root { --bulma-navbar-padding-vertical: 1rem; }`, Bulma's default), or pad the page yourself.
332
+ A `fixed="bottom"` navbar takes `has-navbar-fixed-bottom`, and `has-spaced-navbar-fixed-bottom`
333
+ beside it with `isSpaced`, on the same terms.
332
334
 
333
335
  **Routing:** in a routed app, don't use `href="#"` — render items as the router's link
334
336
  component. `Menu.Item as={Link} to="/x"` and `Navbar.Item as={Link} to="/x"` both compile
@@ -196,7 +196,7 @@ and `visible`. Ratios are `1by1`, `5by4`, `4by3`, `3by2`, `5by3`, `16by9`, `2by1
196
196
  | `has-text-{color}-{shade}`, `has-background-{color}-{shade}` | the same color prop, with `colorShade` or `backgroundColorShade` (`textColor="primary" colorShade="on-scheme"`) |
197
197
  | `is-size-1` … `is-size-7`, and `-{viewport}` | `textSize`, `textSize{Viewport}` |
198
198
  | `has-text-centered`, `-justified`, `-left`, `-right`, and `-{viewport}` | `textAlign`, `textAlign{Viewport}` |
199
- | `is-capitalized`, `is-lowercase`, `is-uppercase`, `is-italic` | `textTransform` |
199
+ | `is-capitalized`, `is-lowercase`, `is-uppercase`, `is-italic`, `is-underlined` | `textTransform` |
200
200
  | `has-text-weight-light`, `-normal`, `-medium`, `-semibold`, `-bold` | `textWeight` |
201
201
  | `is-family-sans-serif`, `-monospace`, `-primary`, `-secondary`, `-code` | `fontFamily` |
202
202
  | `is-block`, `is-flex`, `is-inline`, `is-inline-block`, `is-inline-flex`, `is-grid` | `display` |
@@ -855,7 +855,9 @@ The app's document has its own `<html>` and `<body>`, which a component can't re
855
855
  `has-navbar-fixed-bottom-touch`, `has-spaced-navbar-fixed-top` and
856
856
  `has-spaced-navbar-fixed-bottom` (`html-document:has-navbar-fixed-bottom` and so on): Bulma
857
857
  pads the page for a fixed navbar from it. Put the class on the `<html>` in `index.html`, since
858
- bestax's `Navbar` adds none there, whatever its `fixed` says.
858
+ bestax's `Navbar` adds none there, whatever its `fixed` says. The `has-spaced-` pair pads only
859
+ where `--bulma-navbar-padding-vertical` is registered on `:root`, and sets the padding to 0
860
+ otherwise, in plain Bulma as in bestax, so register it there with the navbar's padding.
859
861
  - **`html-document:data-theme`**, **`html-document:theme-dark`**, **`html-document:theme-light`**:
860
862
  the page's color scheme. Put it on the `<html>` in `index.html`, where the first paint has it.
861
863
  For a scheme the visitor switches, `Theme colorMode` writes the choice only after that paint,
@@ -1 +1 @@
1
- {"version":3,"file":"helper-props.d.ts","sourceRoot":"","sources":["../src/helper-props.ts"],"names":[],"mappings":"AAsBA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CA6B/C;AAED,MAAM,WAAW,WAAW;IAC1B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAyHrD,CAAC;AAEF,eAAO,MAAM,WAAW,UAA6B,CAAC;AAEtD,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAezD;AAID,uFAAuF;AACvF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAe/D;AAMD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASvD;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBnE"}
1
+ {"version":3,"file":"helper-props.d.ts","sourceRoot":"","sources":["../src/helper-props.ts"],"names":[],"mappings":"AAsBA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CA6B/C;AAED,MAAM,WAAW,WAAW;IAC1B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAmIrD,CAAC;AAEF,eAAO,MAAM,WAAW,UAA6B,CAAC;AAEtD,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAezD;AAID,uFAAuF;AACvF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAe/D;AAMD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASvD;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBnE"}
@@ -111,7 +111,17 @@ export const HELPER_GROUPS = {
111
111
  'textWeight',
112
112
  'fontFamily',
113
113
  ],
114
- aliases: ['text', 'font', 'weight', 'align', 'size', 'uppercase', 'italic'],
114
+ aliases: [
115
+ 'text',
116
+ 'font',
117
+ 'weight',
118
+ 'align',
119
+ 'size',
120
+ 'uppercase',
121
+ 'italic',
122
+ 'underline',
123
+ 'underlined',
124
+ ],
115
125
  },
116
126
  flex: {
117
127
  headings: ['### With Flexbox Helpers', '### Gap'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.94",
3
+ "version": "1.18.95",
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.79.5"
45
+ "@allxsmith/bestax-bulma": "^5.80.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",