Underline fields
Large type on nothing but an underline, with a muted placeholder.
UniversalUsed in production
Install
npx finepieces add underline-fieldsOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/underline-fields.jsonexample.tsx
import { UnderlineFields } from "@/components/fine-pieces/underline-fields";
export default function Example() {
return (
<UnderlineFields
heading={<>Tell us <em>who you are.</em></>}
fields={[
{ name: "name", label: "Name", placeholder: "Lieke de Vries" },
{ name: "email", label: "Email", type: "email", placeholder: "lieke@mail.com" },
{ name: "birthday", label: "When is your birthday?", placeholder: "12 March" },
]}
/>
);
}