Atoms / Input

Input

One line of text, or several with Textarea. 32 px, sharp corners.

import { Input, Textarea } from "@forgeron/ui";
/01 → Default
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>
  );
}
/02 → Textarea
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
PropTypeDefaultDescription
monoboolean—For what gets copied: domains, ids.
...restInputHTMLAttributes—Every attribute of the native element.
classNamestring—Extra classes.