Skip to content
Somewhere design system

Forms

Input

A pill-shaped text field. Use it inside FormField.

import { FormField, Input } from "@somewhere-com/ds";

<FormField label="Email">
  <Input type="email" placeholder="you@company.com" />
</FormField>;

Props

States

Always label it, either with a FormField, <label for>, or aria-label. A placeholder is not a label.

Choose the right type (email, tel, url) so mobile keyboards match the input.

Examples

To change props and see every state live, open Input in Storybook.