shadcn.io is not affiliated with official shadcn/ui
Skeleton examples · Form
Input Fields Skeleton for React
Three label and input placeholders stacked for a simple form.
Framework
UI library
Three label and input pairs and nothing else: a short bar for each label and a taller full-width bar for each input. The blocks are Skeleton elements.
Use it inside a form's own layout while its fields load, with the bar heights matched to your inputs.
Preview
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
FAQ
How are the three fields stacked?
flex w-full max-w-md flex-col gap-4. Each field is its own flex flex-col gap-2.
What size is a label bar?
h-4, at w-16, then w-20, then w-24. The three widths stand in for labels of different lengths.
What size is an input bar?
h-10 w-full under each label. Match h-10 to the control you render so the stack does not jump.
Why is the gap inside a field smaller than the gap between fields?
gap-2 pairs a label with its input. gap-4 on the outer column separates the three pairs.
Related
- Form with Labels SkeletonA bordered form placeholder with a
- Multi-column Form SkeletonA form placeholder with two rows of
- Input with LabelA text input with a label above it
- Required LabelA label with a destructive asterisk that
- Form with Sections SkeletonA form placeholder in two titled
- Search Form SkeletonA search placeholder with an input and a