Input

40px tall, 12px side padding, Roboto / text-base. The border moves to Colors/input/border-focus on focus.

Figma: 10 / Components / Input

Usage

Source: src/components/ui/input.tsx
import { Input, InputGroupSearch } from '@/components/ui/input'
<Input placeholder='Page name' />
An input with a leading 20px search icon, used above lists and tables.

States

Default, filled, invalid and disabled.

When to use

When to reach for it, and when to use something else.

Use it for

Complete: Short single-line answers: names, links, amounts.
Complete: Always with a visible label through Field.

Avoid

Not complete: Placeholder text as the only label.
Not complete: Long answers; use a Textarea.

Input

PropTypeDefaultDescription
typestring'text'Native input type.
aria-invalidboolean–Shows the error border.

InputGroupSearch

PropTypeDefaultDescription
placeholderstring'Search'Also used as the accessible name.
containerClassNamestring–Classes for the wrapper, such as a max width.

GoodUnited design system. The Figma file is the source of truth for every color, type size and component.

Made with Modulify