rbx → bestax-bulma prop map
rbx and bestax both target Bulma, so most helper values are already identical — the shapes differ, not the vocabulary. What follows is only what actually changes.
Universal helper props
rbx mixes these into every component via HelpersProps.
| rbx | bestax-bulma | note |
|---|---|---|
backgroundColor |
bgColor |
kept as backgroundColor on a component that takes only that (Tag, Menu, Dropdown, Input, Select, TextArea, File), and flagged on one that takes neither (Notification, Table, Tabs, Checkbox, Radio and others) |
textColor |
textColor |
color on Table (and its Thead, Tbody and Tfoot), Menu and its parts, and Dropdown and its Item, whose color sets the text; flagged on the other components with no textColor (Tag, Tabs, Hero, Progress, Breadcrumb, Input, Select, TextArea, File and others) |
textAlign |
textAlign |
unchanged — both use centered/justified/left/right |
textWeight |
textWeight |
unchanged |
textTransform |
textTransform |
unchanged |
textSize={4} |
textSize="4" |
number → string |
italic |
textTransform="italic" |
|
pull="left" |
float="left" |
|
clearfix, overlay, relative |
same | unchanged booleans |
clipped |
overflow="clipped" |
|
hidden |
visibility="hidden" |
|
invisible |
visibility="invisible" |
|
srOnly |
visibility="sr-only" |
|
marginless |
m="0" |
Bulma v1 removed is-marginless |
paddingless |
p="0" |
Bulma v1 removed is-paddingless |
radiusless |
radius="radiusless" |
|
shadowless |
shadow="shadowless" |
|
unselectable |
interaction="unselectable" |
Every name in rbx's colors and shades unions exists in bestax verbatim.
Bare boolean modifiers → is*
outlined → isOutlined, rounded → isRounded, inverted → isInverted,
fullwidth → isFullwidth, static → isStatic, narrow → isNarrow,
bordered/striped/hoverable on Table → isBordered/isStriped/isHoverable,
delete on Tag → isDelete.
State props → booleans
| rbx | bestax-bulma |
|---|---|
Button state="loading" |
isLoading |
Button state="hovered" / "focused" / "active" |
isHovered / isFocused / isActive |
Input state="focused" / "hovered" |
isFocused / isHovered |
Select.Container state="loading" |
isLoading |
Form grouping
bestax folds rbx's kind + multiline + align into two value-taking props.
| rbx | bestax-bulma |
|---|---|
Field kind="addons" |
hasAddons |
Field kind="group" |
grouped |
Field multiline (with kind="group") |
grouped="multiline" |
Field align="centered" |
ambiguous — TODO; set grouped/hasAddons to "centered" by hand |
Control expanded / loading |
isExpanded / isLoading |
Control iconLeft / iconRight |
hasIconsLeft / hasIconsRight — note bestax's own iconLeft takes an IconProps object, which is a different thing |
Textarea fixedSize |
hasFixedSize |
Breakpoint objects
rbx has three shapes; all three flatten to bestax's per-viewport props.
// 1. the universal `responsive` helper prop
<Box responsive={{ tablet: { display: { value: "flex" }, textSize: { value: 5 } } }} />
<Box displayTablet="flex" textSizeTablet="5" />
// 2. Column sizing
<Column tablet={{ size: 6, narrow: true }} />
<Column sizeTablet={6} isNarrowTablet />
// 3. Column.Group gaps
<Column.Group tablet={{ gapSize: 2 }} />
<Columns gapTablet={2} />hide: { value: true } becomes visibility<Viewport>="hidden". The touch breakpoint and
{ only: true } have no bestax props — both are TODOs.
as
rbx's forwardRefAs puts as on every component. bestax declares it on a smaller set, and
several of those narrow it to specific tags (Footer is 'footer' | 'div', Control is
'div' | 'p'). The codemod passes as through only where bestax really accepts it, and TODOs it
everywhere else. A component it writes as plain markup takes its element from a literal as, and
keeps rbx's default with a prop:as TODO where it can't read the value.
The components that accept it:
| bestax component | as accepts |
|---|---|
Button |
any element type |
Title, SubTitle |
h1–h6, p |
Image |
'figure' | 'div' | 'p' |
Footer |
'footer' | 'div' |
Media |
'article' | 'div' |
Media.Left |
'figure' | 'div' |
Level |
'nav' | 'div' | 'header' | 'footer' |
Level.Item |
'div' | 'p' | 'a' |
Control |
'div' | 'p' |
Menu.Item |
any element type |
Dropdown.Item |
'a' | 'div' | 'button' |
Navbar.Item, Navbar.Link |
any element type |
Container |
'div' | 'main' | 'section' | 'article' | 'aside' | 'header' | 'footer' | 'nav' |
Hero |
'section' | 'div' | 'main' | 'header' | 'footer' | 'article' | 'aside' |
Hero.Head |
'div' | 'header' | 'nav' |
Hero.Foot |
'div' | 'footer' | 'nav' |
Panel |
'nav' | 'article' | 'section' | 'aside' | 'div' |
Panel.Block |
'a' | 'div' | 'label' |
Tag |
'span' | 'a' | 'button' |
Three traps worth naming, because rbx supplies as universally and the obvious guesses are
wrong:
- The
DropdownandNavbarroots do not takeas— only their.Item/.Linksub-components do. Media.Itemdepends on itsalign. It resolves toMedia.Left,Media.ContentorMedia.Right, and onlyMedia.Leftdeclaresas; the codemod drops it with a TODO on the other two.- Several of the accepted props are narrow literal unions, so
as={SomeComponent}still fails to typecheck even whereasis allowed — which is deliberate: a visible type error beats a silent rewrite. A literal outside the union is a different case: the codemod can read it, so<Control as="span">drops theaswith aprop:asTODO naming the tags that component does render. Writing it through produced output the project could not compile. Note that this one does change the rendered element: rbx'sforwardRefAsrendered the tag you gave it, so that really was a<span>, and the TODO exists to tell you the element moved.
Title sizes
rbx's Title rendered an <h1> at every size, subtitle or not, or the element as named.
bestax's Title and SubTitle render the heading their size names unless as="p", so the
codemod keeps the element rbx rendered:
| rbx | bestax-bulma | renders |
|---|---|---|
<Title size={4}> |
<Title textSize="4"> |
<h1> |
<Title size={1}> |
<Title size={1}> |
<h1> |
<Title subtitle size={6}> |
<SubTitle textSize="6"> |
<h1> |
<Title as="h2" size={5}> |
<Title as="h2" textSize="5"> |
<h2> |
<Title as="p" subtitle size={5}> |
<SubTitle as="p" size={5}> |
<p> |
size stays only where it renders the same element: a <p>, or the heading the size names.
Everywhere else the size moves to the textSize helper, and so does a 7, which bestax's size
does not take. The helper sets the same font size through Bulma's is-size-4 class rather than the
title's own is-4, so a rule of your own that targets .title.is-4 needs the new class too.
is-size-4 is also !important, so a font size your own CSS gives the title, such as
.hero .title, now loses to it where it used to beat is-4. Beside a spread, which may carry
as, a size moves even where it names the default <h1>. A literal outside 1 to 7 keeps size
and gets a prop:size TODO.
href follows as
bestax gives an element the attributes of the tag as names, so href exists only where that
tag is an <a>. rbx is looser: <Button as="span" href="/x"> type-checks there and renders
<span href="/x">, which navigates nowhere in any browser.
So the codemod keeps the element and drops the attribute, with a prop:href TODO:
<Button as="span" href="/x">x</Button>
<Button as="span">x</Button> // + TODO(bestax-migrate): `href` on `as="span"` …<Button href="/x"> with no as goes the same way — bestax's Button renders a <button>,
so there is no anchor for the attribute to sit on. Where the link was the intent, set as="a";
that is what keeps the href. Dropping the as does not, on this component.
Refs
rbx reaches a component's rendered element with innerRef. bestax uses a plain forwarded
ref on the roots that support one, so the codemod renames the prop:
| rbx | bestax-bulma | note |
|---|---|---|
innerRef on Button, Dropdown, Modal, Navbar |
ref |
same node — each root's own element |
innerRef on Navbar.Burger, Navbar.Link |
ref |
these two sub-components forward one too |
innerRef on Navbar.Item |
ref |
with dropdown it becomes Navbar.Dropdown |
innerRef on Modal.Container |
ref |
that one becomes bestax's Modal root |
The third row is the Navbar.Dropdown collision, and it runs both ways. Your rbx
Navbar.Dropdown is the menu itself (div.navbar-dropdown), so it maps to bestax's
Navbar.DropdownMenu, which forwards no ref — innerRef there is left alone. bestax reserves
the name Navbar.Dropdown for the outer container, which is what <Navbar.Item dropdown>
becomes.
Beside a ref the element already has, a rename leaves innerRef in place with a prop:innerRef
TODO rather than write a second ref; keep whichever one you meant.
An existing ref is passed through untouched — which is safe only where the bestax target forwards
one. rbx forwards a ref on every component; bestax does so on the form controls, plus Affix, AppFrame, AppFrame.Aside, AppFrame.Burger, AppFrame.Footer, AppFrame.Header, AppFrame.Main, AppFrame.Nav, Avatar,
Button, Carousel, CarouselItem, Center, ColorSwatch, Command, Command.Dialog, Command.Input, CopyButton, DataTable, DescriptionList, DescriptionList.Item, DescriptionList.Label, DescriptionList.Value, Dialog, Dropdown, EmptyState, Flex, FloatButton, FloatButton.BackToTop, FloatButton.SpeedDial, FloatButtons, Group, IconButton, Kbd, Kbd.Group, Lightbox, Lightbox.Trigger,
Link, LinkButton, Loader, LocaleProvider, Menu.Item, Modal, Navbar, Navbar.Burger, Navbar.Dropdown,
Navbar.Item, Navbar.Link, NumberFormatter, RingProgress, ScrollArea, SegmentedControl, SegmentedControl.Segment, Sidebar, Splitter, Splitter.Pane, Stack, Stat, Stat.Change, Stat.Description, Stat.Label, Stat.Value, Stats, TableOfContents, Timeline,
Timeline.Item, Toast, ToggleButton, Tour, Tour.Back, Tour.Next, Tour.Skip, Tour.Step, TreeView and TreeView.Item. "The form controls" there
means the inputs themselves: the Field, Field.Label, Field.Body, Checkboxes and Radios
wrappers around them forward nothing, and Field is a target this codemod emits.
Carry a ref onto anything else — Card, Box, Section, Message, Tabs and most of the
catalogue — and it is unsupported, but the two React majors fail differently. React 18 drops
it and logs "Function components cannot be given refs". React 19 hands ref to the component
as an ordinary prop, so it lands wherever that component spreads its rest props, silently and
with no guarantee it is the element you meant. bestax supports both majors, so neither
outcome is one to build on: put the ref on an element you control.
The codemod does not flag this, because neither the universal prop table nor any
per-component table has a ref entry, so check every ref you carried over against the list
above rather than assuming the silent pass-through means it works. The renames above are for
innerRef, and apply only where the table says.
Note the gap that leaves. Where no row above reaches, innerRef stays in place and is flagged.
On a target that forwards a ref (the form controls, Menu.Item) the rename is yours to make and
the target will take it. On one that forwards nothing, the answer is a wrapping element you
control, not a rename.