Input

A 60px text field with its label above and hint below, in four types: Multi-Purpose, Search, Password and Web Link. Square or pill, flat or with a shadow.

FreeReact and VueInput blocks24 blocksPro

As it appears on your ID.

This is a hint text to help user.Info Here

Add an empty Orvain Input titled “Field Title”, required, with the description “As it appears on your ID.”, the placeholder “Placeholder text...”, a “Verify” button and the hint “This is a hint text to help user.”

Orvain MCPIncluded with the library

When to use#

  • For short free text: a name, an email, a search, a URL.
  • The Password type for secrets, with a button that shows or hides them.
  • The Web Link type for a URL that can be copied or verified in place.

When not to use

  • Use a Text Area for more than one line of text.
  • Use a Dropdown to choose from a known list.

Anatomy#

1Label

Above the field, 4px away: the title, a red * when required, (Optional), and an info glyph.

2Field

60px tall, radius 16 (256 as a pill), a 1px #e1e1e1 stroke inside, 18px in on the left and 12 on the right.

3Leading glyph

Per type: search, lock or link, in #8f8f8f.

4Trailing action

Password: show and hide. Web Link: copy, and a 40px Verify button.

5Hint

The footnote below, 4px away.

States#

Default and Hover

The stroke darkens one step on hover.

Focused

A near-black stroke, and the focus ring on keyboard focus.

Filled

The value in #2a2a2a.

Empty + Error, Filled + Error

A red stroke and a red hint.

Read Only and Disabled

A grey fill without a stroke; Disabled mutes the text as well.

Source#

The Input ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.

Install the packages

Used in these blocks