Forms
Input
Text fields and textareas with a visible label, hint and invalid state.
Field
<label class="og-field" style="max-width: 20rem">
<span class="og-label">Email</span>
<input class="og-input" type="email" placeholder="you@example.com" />
<span class="og-hint">We never share it.</span>
</label>Invalid and multiline
<label class="og-field" style="max-width: 20rem">
<span class="og-label">Company</span>
<input class="og-input" aria-invalid="true" aria-describedby="input-err" value="?" />
<span class="og-hint" id="input-err">Enter your company name.</span>
</label>
<label class="og-field" style="max-width: 20rem">
<span class="og-label">Notes</span>
<textarea class="og-input og-input--multiline" placeholder="Anything we should know?"></textarea>
</label>React
import { Input } from '@og-ui/react';
<Input label="Email" type="email" hint="We never share it." />
<Input label="Company" invalid aria-describedby="company-err" />In every theme
Clean SaaS
Glassmorphism 2.0
Liquid glass
Neumorphism / Soft UI
Claymorphism
Neubrutalism
Aurora / mesh gradient
Keyboard and screen readers
- Native input: Tab to focus, typing as usual.
- Link the error text with aria-describedby so screen readers read it with the field.
Install
npx @og-ui/cli add input
npx @og-ui/cli add input --react # with the React component