All systems
B
Base
M
Mocha
S
Shell

Mocha

Foundations

  • Getting started
  • Typography
  • Spacing
  • Colors
  • Primitives
  • Forms
  • Components

Primitives

  • Button
  • Inline
  • Scroll Area
  • Separator
  • Stack
  • Text

Forms

  • Checkbox
  • Field
  • Input
  • Label
  • Segmented Control
  • Select
  • Slider
  • Switch
  • Textarea

Components

  • Card
  • Dialog
  • Menu
  • Popover
  • Sheet
  • Skeleton
  • Tabs
  • Toast
  • Tooltip
  1. @zepez/design
  2. Mocha
  3. Forms

Forms

What takes a user's input, and the labels and fields around it. Mocha has 9.

  • Checkbox
    A checkbox with its check mark built in.
  • Field
    Wires a label, a description and validation errors to a form control.
  • Input
    A single-line text field, with an optional clear button.
  • Label
    Names any control, and moves focus into it when pressed.
  • Segmented Control
    Picks one of a few options from a row of buttons, with an indicator that slides to the choice.
  • Select
    Picks one value from a list.
  • Slider
    Picks a number, or a range, by dragging a thumb along a scale.
  • Switch
    An on/off switch for settings that apply right away.
  • Textarea
    A multi-line text field that grows to fit its content.
PreviousPrimitivesNextComponents
@zepez/designSource on GitHub