Input

The Input component is the standard text field in Mosaic. It uses a fixed height (shadcn-style) with size and disabled variants.

Playground

Props

PropTypeDefaultValue
size'sm' | 'md' | 'lg''md'
classNamestring
styleCSSProperties

Usage

The snippet below reflects the props selected in the table above — change a prop and it updates here.

import { Input } from '@clerk/ui/mosaic/components/input';

<Input
  size='md'
  placeholder='Enter text…'
/>

Examples

Sizes

Disabled

Invalid