Tonic UI
Getting StartedColor ModeColor StyleVersionsContributing
THEME
BordersBreakpointsColorsOutlinesPositionsSpacingSizesShadowsTypography
BUILDING BLOCKS
BoxControlBox
UTILITIES

InputBase

InputBase does not have appearance settings including default border, color, outline, and padding. It aims to be a simple building block for creating an input.

Import

Usage

EDITABLE EXAMPLE

Attributes

Standard input attributes are supported, e.g., type, disabled, readOnly, required, etc.

type

EDITABLE EXAMPLE

disabled

EDITABLE EXAMPLE

readOnly

EDITABLE EXAMPLE

required

EDITABLE EXAMPLE

Props

NameTypeDefaultDescription
disabledbooleanIf true, the user cannot interact with the control. This sets aria-disabled=true and you can style this state by passing the _disabled prop.
readOnlybooleanIf true, prevents the value of the input from being edited.
isInvalidbooleanIf true, the input will indicate an error. You can style this state by passing the _invalid prop.