Components
Input
A native text input with invalid and disabled styling.
Ombelle · light
Installation
Run in a project initialized with an Ombelle preset (see Get started). The component uses the saved project preset. Run the command from your app folder; it shows the changes and asks before writing.
pnpm dlx @ombelle-ui/cli@1.1.2 add inputAdds components/ui/input.tsx and installs react, clsx, tailwind-merge with lifecycle scripts disabled.
In a liquid glass project the plan adds a notice that accessibility is not guaranteed, because text contrast depends on the background behind the glass.
Usage
example.tsx
import { Input } from '@/components/ui/input'
import { Label } from '@/components/ui/label'
export function EmailField() {
return (
<>
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" autoComplete="email" />
</>
)
}API and states
- API
- Native input props, size (sm, default, lg), aria-invalid, disabled
- Minimum states
- Empty, filled, focus, invalid, disabled
- Native basis
- <input>
- Styles
- Stable in Ombelle, Papier, Organic, Retro futurism, minimalist, neo-brutalism and flat, light and dark. Liquid glass: stable, accessibility not guaranteed.