Forms
Input
Text field. start and end hold icons or units inside the box.
import { Input } from "@percentsa/ui";Examples
Code
export function InputExample() {
const t = useT();
return (
<Stack gap={4} className="w-full max-w-md">
<Input placeholder={t("Plain", "عادي")} aria-label={t("Plain", "عادي")} />
<Input start={<AtSign aria-hidden />} placeholder="username" dir="ltr" aria-label={t("User name", "اسم المستخدم")} />
<Input disabled placeholder={t("Disabled", "معطّل")} aria-label={t("Disabled", "معطّل")} />
</Stack>
);
}