Repository navigation
1.18.1
Added
CheckboxGroup: a set of checkboxes that answer one question, any number at once. The set has one value, an array of the ticked checkboxes'values, throughvalue,defaultValueandonValueChange. It is named by itslabel, and itserroris shown under the set and turns every option todanger. Options stand RadioGroup's distance apart, whichspacingandorientationchange.allValueswith aCheckboxthat hasparentadds a select-all box that draws itself indeterminate while only some options are ticked.size,color,readOnlyandnamereach every Checkbox that does not set its own, anddisabledreaches all of them. A native submit sends one entry per ticked box undername, and aForm'sonSubmitgets them as an array.spacingonForm,Fieldset,RadioGroupandList: the gap between what they hold, as an exact length. It is on Tailwind's spacing scale, as onFlexandGridContainer, sospacing={5}is1.25rem. On a Form or a Fieldset it takes over from the gapsizepicks, and a Fieldset's legend keeps its type scale. On a RadioGroup it is the gap between the options, on both axes when a horizontal group wraps. On a List it is the gap between the rows, which otherwise touch, and it is ignored withdividers.NebaProvidertakesspacingindefaults, for the gap between fields across a product. It reaches every Form and Fieldset, and aspacingwritten on one of them still wins. RadioGroup and CheckboxGroup options, List rows,FlexandGridContainerdo not read it, so a product that spreads its fields apart does not spread every set of options and every layout with them.
Changed
- A
RadioGroup's options stand as far apart as aForm's fields, and followsize. A column of options was0.5remapart at every size. It is now0.75rematmd, the gap a Form and a Fieldset put between fields, and0.375rem,0.5rem,0.875remand1rematxs,sm,lgandxl. A horizontal group keeps1.25remalong the row and puts its wrapped lines on the same steps. Passspacing={2}to keep the old column gap.
Fixed
- A toast raised while a modal
DialogorDraweris open is drawn above its scrim, and its buttons take the click. The toast stack read the same--neba-z-portalas every other portalled surface, and on equal z-index the later portal is on top. The stack mounts withToastProvider, so a dialog opened after it covered the toast. The stack now reads--neba-z-toast, which is one above--neba-z-portalunless you set it, so the order holds on a page that raises--neba-z-portal. Menus, tooltips and popovers keep their z-index; where one overlaps a toast, the toast is now the one on top.
Documentation
- Getting started warns against importing
neba/styles.cssin a project that runs Tailwind v4. Its rules sit outside any cascade layer and Tailwind's utilities sit inside one, so a component's own rule beats a class passed inclassNamefor the same property, and only an important class such aspx-10!gets through. Such a project importsneba/tailwind.cssinstead.
Every release is in the changelog on the docs site and in CHANGELOG.md at this tag.