Input
One line of text, or several with Textarea. 32 px, sharp corners.
import { Input, Textarea } from "@forgeron/ui";import { Input } from "@forgeron/ui";
export default function Default() {
return (
<div style={{ display: "grid", gap: 12, width: 320 }}>
<Input placeholder="Search contacts" aria-label="Search contacts" />
<Input mono defaultValue="crm.atelier-moreau.fr" aria-label="Domain" />
<Input disabled placeholder="Disabled" aria-label="Disabled" />
</div>
);
}import { Textarea } from "@forgeron/ui";
export default function TextareaExample() {
return (
<div style={{ width: 320 }}>
<Textarea placeholder="Add a note for the team" aria-label="Note" />
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
mono | boolean | — | For what gets copied: domains, ids. |
...rest | InputHTMLAttributes | — | Every attribute of the native element. |
className | string | — | Extra classes. |