Skip to content

Primitives

76 primitives, each compiled through both backends to produce this page.

Two halves per row, and neither is written here. The intent below is the doc comment above the variant in hozo_ir’s Primitive enum, which is where a primitive’s purpose is recorded and the one place that cannot drift from the set. The Web and React Native columns are what the compiler emitted for a snippet, in the same run that wrote this file.

Primitive Web React Native Pinned by
ActivityIndicator <HozoActivityIndicator accessibilityLabel={"Loading"}> <ActivityIndicator accessibilityLabel={"Loading"}> a named busy indicator
Address <address className="hozo-view"> <View> contact address
AnimatedView <HozoAnimatedView className="hozo-view"> <Animated.View> an animated view
Article <article className="hozo-view"> <View role="article"> document landmarks
Aside <aside className="hozo-view"> <View role="complementary"> landmark regions
Avatar <HozoAvatar className="hozo-0" statusClassName="hozo-1" src={photo} name="Ada Lovelace" status="online"> <HozoAvatar statusStyle={hozoStyles.hozo1} src={photo} name="Ada Lovelace" status="online"> an avatar and its parts
Badge <HozoBadge accessibilityLabel={"3 unread messages"} count={3}> <HozoBadge accessibilityLabel={"3 unread messages"} count={3}> a counted badge
Button <button type="button"> <Pressable accessibilityRole="button"> semantic Button
Chip <HozoChip className="hozo-0" removeClassName="hozo-1" onRemove={remove}> <HozoChip removeStyle={hozoStyles.hozo1} onRemove={remove}> a selectable, removable chip
Code <code> <Text> inline emphasis and its meaning
ColorPicker <HozoColorPicker swatchClassName="hozo-1" accessibilityLabel={"Theme colour"} value={color} onChange={setColor} presets={presets}> <HozoColorPicker accessibilityLabel={"Theme colour"} swatchStyle={hozoStyles.hozo1} value={color} onChange={setColor} presets={presets}> a named colour picker; an unnamed color picker
Combobox <HozoCombobox inputClassName="hozo-1" optionClassName="hozo-2" accessibilityLabel={"Country"} options={options}> <HozoCombobox accessibilityLabel={"Country"} inputStyle={hozoStyles.hozo1} hozoOptionStyle={({ pressed, hovered, focused, focusVisible, 'aria-disabled': __hozoSlotAriaDisabled, 'aria-selected': __hozoSlotAriaSelected }) => a named combobox
CommandPalette <HozoCommandPalette panelClassName="hozo-1" activeItemClassName="hozo-2" open={open} onOpenChange={setOpen} commands={commands}> <HozoCommandPalette open={open} panelStyle={hozoStyles.hozo1} activeItemStyle={hozoStyles.hozo2} onOpenChange={setOpen} commands={commands}> a named command palette
Description <dd className="hozo-view"> <View> a description list
Details <details> <HozoDetails> a disclosure and its trigger
Dialog <HozoDialog accessibilityLabel={"Settings"} open onClose={dismiss}> <HozoDialog accessibilityLabel={"Settings"} open onClose={dismiss}> modal Dialog; incomplete Dialog diagnostic
Emphasis <em> <Text> inline emphasis and its meaning
Fieldset <fieldset className="hozo-view"> <View role="group"> a group of fields and its name
Figcaption <figcaption> <Text> figure and its caption
Figure <figure className="hozo-view"> <View role="figure"> figure and its caption
FlatList <HozoFlatList data={rows} renderItem={({ item }) => <HozoFlatList accessibilityRole="list" data={rows} renderItem={({ item }) => virtualized list semantics
Footer <footer className="hozo-view"> <View role="contentinfo"> landmark regions
Header <header className="hozo-view"> <View role="banner"> landmark regions
Heading <h2> <Text accessibilityRole="header"> semantic document structure
Image <img src={"/a.png"} alt={"A picture"} /> <Image accessibilityLabel={"A picture"} source={{ uri: "/a.png" }} /> described Image
Legend <legend> <Text> a group of fields and its name
Link <a href="/a"> <HozoLink href="/a"> semantic Link
List <ul className="hozo-view"> <View accessibilityRole="list"> ordered static list
Listbox <HozoListbox optionClassName="hozo-1" accessibilityLabel={"Country"} options={options}> <HozoListbox accessibilityLabel={"Country"} hozoOptionStyle={({ pressed, hovered, focused, focusVisible, 'aria-disabled': __hozoSlotAriaDisabled, 'aria-selected': __hozoSlotAriaSelected }) => a named listbox
ListItem <li className="hozo-view"> <View role="listitem"> ordered static list
Main <main className="hozo-view"> <View role="main"> landmark regions
Mark <mark> <Text> inline emphasis and its meaning
Menu <HozoMenu triggerClassName="hozo-1" itemClassName="hozo-2" trigger="Actions" items={items}> <HozoMenu hozoTriggerStyle={({ pressed, hovered, focused, focusVisible, 'aria-expanded': __hozoSlotAriaExpanded }) => a menu
Meter <meter aria-valuetext={'60%'} aria-label={"Disk usage"} value={0.6}> <HozoMeter accessibilityLabel={"Disk usage"} value={0.6}> a meter reports where it stands
Modal <HozoModal visible onRequestClose={close}> <Modal visible onRequestClose={close}> a modal and its system dismissal
Nav <nav className="hozo-view"> <View role="navigation"> document landmarks
NoBreak <span}> <Text> scripts, small print and an unbreakable run
OtpInput <HozoOtpInput cellClassName="hozo-1" activeCellClassName="hozo-2" accessibilityLabel={"Verification code"} length={6} onComplete={verify}> <HozoOtpInput accessibilityLabel={"Verification code"} cellStyle={hozoStyles.hozo1} activeCellStyle={hozoStyles.hozo2} length={6} onComplete={verify}> a one-time code field; an unnamed one-time code field
Pagination <HozoPagination className="hozo-0" currentItemClassName="hozo-1" page={page} pageCount={20} onPageChange={setPage}> <HozoPagination currentItemStyle={hozoStyles.hozo1} page={page} pageCount={20} onPageChange={setPage}> named pagination
Paragraph <p> <Text> semantic document structure; invalid document nesting diagnostic; a disclosure and its trigger; inline emphasis and its meaning; scripts, small print and an unbreakable run
Preformatted <pre> <Text> preformatted text keeps its spaces
Pressable <div role="button" {...hozoInteractive(go)}> <Pressable role="button" onPress={go}> role-bearing Pressable; missing interaction role diagnostic
Progress <progress aria-label={"Upload"} value={40} max={100}> <View accessibilityValue={{ min: 0, max: 100, now: 40 }} role="progressbar" accessible accessibilityLabel={"Upload"}> a progress bar reports its position
RefreshControl <HozoRefreshControl refreshing={busy} onRefresh={reload}> <RefreshControl refreshing={busy} onRefresh={reload}> pull to refresh, spelled as React Native spells it
Ruby <ruby> <Text accessibilityLabel="x"> ruby and its reading
RubyText <rt> <Text> ruby and its reading
ScrollView <div className="hozo-scroll-view" {...hozoScrollable()}> <ScrollView> named scrollable region; unnamed scrollable region diagnostic; pull to refresh, spelled as React Native spells it
Search <search className="hozo-view"> <View> the landmark React Native has no word for
Section <section className="hozo-view"> <View> semantic document structure; invalid document nesting diagnostic
Separator <hr /> <View role="separator"> a separator is a separator; a decorative separator is silent
Skeleton <div className="hozo-view hozo-0" aria-hidden={true} data-hozo-skeleton=""> <Animated.View aria-hidden> a skeleton is silent and stills under reduced motion
Small <small> <Text> scripts, small print and an unbreakable run
Stepper <HozoStepper className="hozo-0" currentStepClassName="hozo-1" steps={steps} activeStep={1}> <HozoStepper currentStepStyle={hozoStyles.hozo1} steps={steps} activeStep={1}> a named stepper
Strikethrough <s> <Text> inline emphasis and its meaning
Strong <strong> <Text> inline emphasis and its meaning
Sub <sub> <Text> scripts, small print and an unbreakable run
Summary <summary> <HozoSummary> a disclosure and its trigger
Sup <sup> <Text> scripts, small print and an unbreakable run
Svg <svg role="img" aria-label={"Chart"} viewBox="0 0 8 8"> <Svg accessible accessibilityRole="image" accessibilityLabel={"Chart"} viewBox="0 0 8 8"> named drawing; decorative drawing
Table <table className="hozo-0"> <HozoTable> a data table
TableBody <tbody> <HozoTableSection section="body"> a data table
TableCaption <caption> <HozoTableCaption> a data table
TableCell <td className="hozo-0"> <HozoTableCell> a data table
TableFooter <tfoot> <HozoTableSection section="footer"> a data table
TableHead <th scope="col"> <HozoTableCell head> a data table
TableHeader <thead> <HozoTableSection section="header"> a data table
TableRow <tr> <HozoTableRow> a data table
Term <dt> <Text> a description list
TermList <dl className="hozo-view"> <View role="list"> a description list
Text <span> <Text> generic container; named scrollable region; unnamed scrollable region diagnostic; virtualized list semantics; an opacity press target; a press target without feedback; a modal and its system dismissal; pull to refresh, spelled as React Native spells it
TextInput <input aria-label={"Name"} /> <TextInput accessibilityLabel={"Name"} /> named TextInput; missing field name diagnostic
Time <time dateTime="2026-09-11"> <Text dateTime="2026-09-11"> a machine-readable time
TouchableOpacity <HozoTouchableOpacity role="button" {...hozoInteractive(go)}> <TouchableOpacity role="button" onPress={go}> an opacity press target
TouchableWithoutFeedback <HozoTouchableWithoutFeedback role="button" {...hozoInteractive(go)}> <TouchableWithoutFeedback role="button" onPress={go}> a press target without feedback
Underline <u> <Text> inline emphasis and its meaning
View <div className="hozo-view"> <View> generic container; a press target without feedback

“Pinned by” names the cases in packages/tailwind-conformance/src/a11y-contextual.ts that assert this primitive on both platforms. A dash there is a primitive whose lowering nothing holds still.

A different tag name is not a difference worth printing: a <section> and a View are the same box. What is worth knowing is where a role has to be written on one side and not the other, because that is the work the compiler is doing.

Both columns are the role written into the output. On the Web most of these are blank because the element already carries the role – a <nav> is a navigation landmark without anybody saying so – while React Native has no elements, so every role it keeps is one the compiler put there. A blank on the React Native side is a role that platform has no word for, and those are the ones that are genuinely lost.

Primitive Web React Native
Article — article
Aside — complementary
Button — button
Fieldset — group
Figure — figure
FlatList — list
Footer — contentinfo
Header — banner
Heading — header
List — list
ListItem — listitem
Main — main
Nav — navigation
Progress — progressbar
Separator — separator
Svg img image
TermList — list

17 of 76.

ActivityIndicator — A busy indicator: HozoActivityIndicator on Web, which draws its own spinner, and React Native’s ActivityIndicator. The Web half exists because there is no element for this and a project should not have to bring one.

Address — Contact/address semantics: <address> on Web and View on React Native.

AnimatedView — React Native Animated’s namespace View component.

Article — A self-contained document composition: <article> on Web and a role-bearing View on React Native.

Aside — A complementary region/sidebar: <aside> on Web and role="complementary" View on React Native.

Avatar — A person’s picture, or their initials when it is absent or fails to load, read as one image named for the person (#144). HozoAvatar on both platforms, the pattern from @hozo/patterns; like Chip, the compiler’s part is its class lists – the avatar’s, and its picture’s, initials’ and status dot’s, which are style props on Native.

Badge — A short status label, and the one that is a number: count shows “3” and is read as its accessibilityLabel (“3 unread messages”). HozoBadge on both platforms, because the Web half needs a second element – a <span> cannot carry an accessible name.

Button — A control that submits an intent: <button> on Web and a Pressable carrying accessibilityRole="button" on React Native. Not React Native’s own Button, which takes a title and renders no children – see INCOMPATIBLE_PRIMITIVES.

Chip — A compact token – a filter that is on or off, an entry that can be removed, or both. HozoChip on both platforms, the pattern from @hozo/patterns; the compiler’s part is its styling, which is two class lists, one for the chip and one for its remove button (#787). React Native has no class list to hand a component, so on Native both become style props, which class_slots names.

Code — Inline code literal: <code> on Web and monospace Text on React Native.

ColorPicker — A colour, from swatches, three sliders or its hex (#153): a radio group of swatches, hue/saturation/lightness as ordinary sliders rather than a two-dimensional square, each read in words. HozoColorPicker on both platforms; its class lists are the swatch, the selected swatch, the slider track and thumb, and the field.

Combobox — An editable field and filtered popup whose input, list and options keep independent class owners. Runtime behavior stays in the pattern.

CommandPalette — A searchable list of commands in a modal (#152): a dialog holding a combobox and a grouped listbox. HozoCommandPalette on both platforms; the compiler’s part is its class lists – the overlay, scrim, panel, field, list, headings, items, the active item and the shortcut badge – which are style props on Native.

Description — A description/value within a term list: <dd> on Web and View on React Native.

Details — A disclosure widget container: <details> on Web and collapsible View on React Native.

Dialog — A modal dialog (proposal §10.3, v1’s first hard primitive). A primitive rather than a component the compiler walks past, because otherwise its className never compiles and its missing accessible name is never noticed – both backends lower it to /behaviors’s Dialog, which owns the runtime behaviour.

Emphasis — Stress emphasis: <em> on Web and Text with italic font style on React Native.

Fieldset — A form control grouping container: <fieldset> on Web and role="group" View on React Native.

Figcaption — A figure caption: <figcaption> on Web and Text on React Native.

Figure — A figure container: <figure> on Web and role="figure" View on React Native.

FlatList — A data-driven list. Web keeps the lightweight core renderer while Native lowers to React Native’s virtualized FlatList.

Footer — A landmark footer/contentinfo: <footer> on Web and role="contentinfo" View on React Native.

Header — A landmark header/banner: <header> on Web and role="banner" View on React Native.

Heading — A document heading: <h1>…<h6> on Web and an accessible header Text on React Native.

Image — An image with a universal string src: <img src> on Web and React Native’s <Image source={{ uri }}> on Native.

Legend — A caption/label for a fieldset: <legend> on Web and bold Text on React Native.

Link — A destination-bearing interaction: <a> on Web and Hozo’s Linking.openURL wrapper on React Native.

List — A static semantic list: <ul>/<ol> on Web and a list-role View on React Native. Data-heavy lists remain FlatList.

Listbox — A list whose options own focus and their committed selection state.

ListItem — One static list entry: <li> on Web and a listitem-role View on React Native.

Main — The primary content landmark: <main> on Web and role="main" View on React Native.

Mark — Highlighted/marked text: <mark> on Web and highlighted Text on React Native.

Menu — An action menu with a button trigger and focusable non-form items.

Meter — A scalar within a known range – a disk’s fill, a password’s strength: <meter> on Web and a View carrying accessibilityValue on React Native. Not Progress, which is how far a task has got.

Modal — React Native’s top-layer presentation surface.

Nav — A navigation landmark: <nav> on Web and a role-bearing View on React Native.

NoBreak — Non-breaking inline container: <span style="white-space: nowrap"> on Web and non-breaking space replacement on React Native.

OtpInput — A one-time code or a PIN (#149): one real input drawn as cells, so a reader finds one field and the operating system can fill it from a text message. HozoOtpInput on both platforms; its class lists are the box, every cell, and the active and filled cells, applied by the pattern.

Pagination — Numbered pages with previous and next (#150): a named <nav> of buttons, or of links with getPageHref. HozoPagination on both platforms; the compiler’s part is its class lists, including the ones for a state – the current page, a disabled end – which the pattern applies because React Native has no selector to.

Paragraph — A block of prose: <p> on Web and Text on React Native.

Preformatted — Preformatted text, a code block above all: <pre> on Web and monospace Text on React Native, which keeps spaces and line breaks as written.

Pressable — A surface that responds to a press: <div> with the keyboard handlers a <button> gets for free on Web, and Pressable on React Native. Carries no role of its own, which is why writing one is the commonest thing A11Y_INTERACTIVE_WITHOUT_ROLE asks for.

Progress — A progress indicator bar: <progress> on Web and role="progressbar" View on React Native.

RefreshControl — Pull-to-refresh intent nested in a ScrollView or FlatList.

Ruby — CJK ruby annotation container: <ruby> on Web and ruby layout with duplicate-speech suppression on React Native.

RubyText — CJK ruby text annotation: <rt> on Web and furigana text on React Native.

ScrollView — A viewport that scrolls vertically by default and horizontally when horizontal is set. Its content layout stays explicit in children.

Search — A search landmark container: <search> on Web and role="search" View on React Native.

Section — A thematic document region: <section> on Web and View on React Native, where there is no corresponding layout primitive.

Separator — A thematic break or divider: <hr> on Web and role="separator" View on React Native.

Skeleton — A loading placeholder: a box with no meaning of its own, hidden from assistive technology, whose animation stops under reduced motion whatever classes put it there (decision 007, section 5). <div> on Web and View on React Native.

Small — Side comments and small print: <small> on Web and small Text on React Native.

Stepper — Where a person is in a process of several steps (#150), each step’s position and status said in words. HozoStepper on both platforms; like Pagination, its class lists include one per status, for the step and for its indicator, applied by the pattern.

Strikethrough — Strikethrough/deleted text: <s> on Web and Text with line-through on React Native.

Strong — Bold/strong importance: <strong> on Web and Text with bold font weight on React Native.

Sub — Subscript: <sub> on Web and subscripted Text on React Native.

Summary — A disclosure summary/trigger: <summary> on Web and Pressable on React Native.

Sup — Superscript: <sup> on Web and superscripted Text on React Native.

Svg — An SVG element, by its own name: Svg, Rect, Path, G. One variant rather than fourteen because the lowering really is uniform – Web writes the lowercase tag, React Native imports the capitalised component of the same name from react-native-svg – so a variant each would be fourteen identical match arms in every backend and one more place to forget an element. The name is the SVG one, and the JSX spelling is <Svg.Rect>: a namespace rather than a prefix, because Text is both an SVG element and a Hozo primitive and SvgText would be a name neither the specification nor react-native-svg uses.

Table — A data table (#144): <table> on Web, and on React Native a HozoTable that sizes its columns from every cell in them, the way the browser’s automatic table layout does, since a flex row knows nothing of the rows above it.

TableBody — <tbody>: the data rows. HozoTableSection on Native.

TableCaption — <caption>: the table’s name.

TableCell — <td>; on Native a HozoTableCell that a reader hears with its column’s header, since Android has no table to navigate.

TableFooter — <tfoot>: totals and notes under the data. HozoTableSection on Native.

TableHead — <th> – scope="col" unless the author says otherwise – and on Native a HozoTableCell that names the column for its data cells.

TableHeader — <thead>: the rows that head the columns. HozoTableSection on Native, where their header cells name the data cells below.

TableRow — <tr>; HozoTableRow on Native, which numbers its cells.

Term — A term/name within a term list: <dt> on Web and bold Text on React Native.

TermList — A term-and-description list container: <dl> on Web and role="list" View on React Native.

Text — A run of text: <span> on Web and Text on React Native. Not a box. It carries no flex base on either platform, so display: flex on one means what CSS says it means.

TextInput — A single-line text field. <input> on Web, TextInput on React Native – and the reason placeholder-* can lower at all, since React Native carries that colour as a prop on this component rather than as a style on anything.

Time — A machine-readable date/time representation: <time> on Web and Text on React Native.

TouchableOpacity — React Native’s opacity-feedback press target. Web lowering keeps the feedback in a tiny runtime component; Native keeps TouchableOpacity.

TouchableWithoutFeedback — A press target that attaches behavior to its only child instead of introducing a layout box.

Underline — Underlined text: <u> on Web and Text with underline text decoration on React Native.

View — The box everything else is built from: <div> on Web and View on React Native. A column flex container on both, which is React Native’s default and not CSS’s – the Web side carries a base style that says so, and is_view_box names every primitive that shares it.