RoadieRoadie
  • Home
  • Brand
  • Foundations
  • Content
  • Tokens
  • Components
  • Charts
  • Widgets
  • Appearance
HomeBrandFoundations
Appearance

Components

  • Navigation

    • Breadcrumb
    • LinkBeta
    • NavigatorAlpha
    • Steps
    • Tabs
  • Layout

    • Accordion
    • CollapsibleBeta
    • PaneAlpha
    • ScrollArea
    • Separator
  • Actions

    • Button
    • IconButton
    • ToggleBeta
    • Toggle groupBeta
    • ToolbarBeta
  • Fields

    • EditorAlpha
    • Field
    • Fieldset
    • Input
    • Label
    • Number fieldBeta
    • OTP fieldBeta
    • Query fieldAlpha
    • Textarea
  • Choices

    • Autocomplete
    • CheckboxBeta
    • Combobox
    • Radio group
    • Select
    • SliderBeta
    • SwitchBeta
  • Date and time

    • CalendarBeta
    • CalendarTile
    • Countdown
    • Dashboard periodBeta
    • Date fieldBeta
    • Date pickerBeta
    • Date range pickerBeta
    • DateTime
    • Duration
    • Time fieldBeta
  • Collections

    • Card
    • Carousel
    • DataTableBeta
    • ListAlpha
    • Marquee
    • RecordGridAlpha
    • RecordTableAlpha
    • SortableAlpha
    • TableBeta
  • Overlays

    • Dialog
    • Drawer
    • MenuBeta
    • Popover
    • ToastBeta
    • Tooltip
  • Status

    • Badge
    • CalloutBeta
    • DeltaBeta
    • Empty state
    • MeterBeta
    • ProgressBeta
    • SkeletonBeta
    • SparklineBeta
    • StatTileBeta
  • Media & brand

    • AvatarBeta
    • Icon Tile
    • Image
    • Logo
    • PatternBeta
    • QR codeBeta
    • SpotIllustration
  • Text

    • Code
    • Highlight
    • KbdBeta
    • Mark
    • Prose

Input

Status
Stable
Added
Components 2.0.08 Apr 2026
Docs updated
19 Oct 2026

A styled text input for collecting user data.

Import

import { Input } from '@oztix/roadie-components'

Examples

Default

<Input placeholder='Enter text' />

Sizes

<Input size='sm' placeholder='Small' />
<Input size='md' placeholder='Medium (default)' />
<Input size='lg' placeholder='Large' />

Emphasis

<Input emphasis='normal' placeholder='Normal emphasis' />
<Input emphasis='subtle' placeholder='Subtle emphasis' />

States

Inputs start neutral, gain an accent-coloured border and ring on focus, and switch to danger colouring when invalid.

{/* Default */}
<Input placeholder='Click to focus' />
{/* Invalid */}
<Input aria-invalid='true' defaultValue='bad-email' />
{/* Disabled */}
<Input disabled placeholder='Disabled' />

Accessibility

  • Label association: Always pair with a <label> (or Field.Label) using matching htmlFor/id attributes.
  • Validation: Set aria-invalid="true" on invalid inputs. is-interactive-field provides visual danger styling automatically.
  • Description: Use aria-describedby to link helper or error text to the input.

API reference

Input

intent"neutral" | "brand" | "brand-secondary" | "brand-blue" | "brand-orange" | "brand-purple" | "accent" | "danger" | "success" | "warning" | "info" | null
Deprecated

Deprecated: Form controls take their colour from state; `is-interactive-field` handles it. Will be removed in v3.0.0.

emphasis"normal" | "subtle" | null
size"sm" | "md" | "lg" | null
Previous page← FieldsetNext pageLabel →