Components
Inputs
Single-line text for a form. One field, a short set of fields, or a card payment form. Search is its own component.
Buy nowLabel out
- Variant
- Default
- Size
- md
- State
- Default
- Label
- Out
- Placeholder
- Ada Chen
<label> Name <Input placeholder="Ada Chen" /> </label>
How to use
The label sits outside the field, on the top of its margin. Use this on a form where several facts are collected, such as a name, an email, or a card. The placeholder is lighter than the value the person will type.
Label in
- Variant
- Default
- Size
- lg
- State
- Default
- Label
- In
- Placeholder
- 12345678
<Input label="Account number" placeholder="12345678" />
How to use
The label sits inside a 56px field, above the placeholder. Use one field when a single choice leads the screen, usually on mobile. The field uses the same surface and border as every other input. On focus the background changes. Do not add a second label outside the field.
Account details
<Input label="Account number" /> <Input label="Sort code" /> <Input label="Name" />
How to use
The label sits inside a 56px field. Use this on mobile, for a short set such as account number, sort code, and name. The field uses the same surface and border as every other input. On focus the background changes. Do not add a second label outside the field.
Form fields
<Input type="text" placeholder="Ada Chen" /> <Input type="email" placeholder="ada@memorisely.com" /> <Input type="number" placeholder="12" />
How to use
Name, email, and number are the text inputs a form starts with. Each one uses its own input type so the keyboard, autofill, and checks are right. Stack them with the same gap. Do not put search in this set.
Card payment
<Input placeholder="1234 1234 1234 1234" /> <Input placeholder="Ada Chen" /> <Input placeholder="MM / YY" /> <Input placeholder="CVC" />
How to use
A card form is the number, the name on the card, the expiry, and the security code. Expiry and the code share one row. The number is its own row. Use a number keyboard for the card fields. Do not ask for the card in a single generic text field.
Inputs exists so designers, engineers, and AI start from the same decision. The preview on this page is the component as it ships. You compose it. You do not redraw it.
Use it when the job matches the name. Reach for a neighbour in the system when it does not. Names in Figma match the names in code, which is what keeps a prototype close to what actually ships.
Tokens
| Token | Value | Use |
|---|---|---|
| --inputs-bg | var(--background) | Surface behind the control |
| --inputs-fg | var(--foreground) | Label and icon |
| --inputs-border | var(--border) | Edge |
| --radius-md | 10px | Default corner |
| --duration-fast | 120ms | Hover and press |
Included
- Text, email, number, and card
Memorisely