Skip to content

    Browse components

    Droop Field

    A text field whose words and underline droop along an arc while idle, then spring flat the moment you focus it.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/droop-field

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/droop-field.json

    Usage

    import { DroopField } from "@/components/ui/droop-field";
    
    <DroopField placeholder="Type your name" bend={40} />

    Props

    PropTypeDefaultDescription
    widthnumber380Width in px.
    fontSizenumber30Text size in px.
    bendnumber40Idle sag of the arc in px. Negative arcs upward.
    placeholderstring"Type your name"Placeholder text (also curved).
    defaultValuestring""Initial text.
    labelstring"Name"Accessible label.
    colorFromstring"#a78bfa"Underline gradient start.
    colorTostring"#22d3ee"Underline gradient end.
    onValueChangeReactNode—(value: string) => void.
    classNamestring—Extra classes for the root element.