One field, two shapes, inner slots that go flush (full-bleed 1:1) or inset (bare content + gap) — plus detached outer slots. Every circle is polymorphic: button, text, icon, menu, popover, or tooltip-only.
Every field is composed from the same parts. Learn these once, build any field. Two separate layers: a construction grid marking every edge, and click-any-part popups carrying each part's number, title, and explanation.
Guests can view · link expires in 7 days
<UniversalInput shape size innerFit radius invalid error><Field><Row> · auto<Inner position fit width><Outer fit width><Top><Bottom><Input><Annotation><Above><Below><Specimen top bottom><Label>Tip: click a row — or a line below — to locate the part in the specimen.
<UniversalInput shape="straight" size="md" innerFit="flush"><UniversalInput.Above><UniversalInput.Label>Label</UniversalInput.Label><UniversalInput.Annotation>straight · md · flush</UniversalInput.Annotation></UniversalInput.Above><UniversalInput.Outer label="filters" onClick={…}><SlidersHorizontal /></UniversalInput.Outer><UniversalInput.Field><UniversalInput.Top className="flex gap-1.5 p-2"><span>deck.pdf</span><span>shot.png</span></UniversalInput.Top><UniversalInput.Inner position="leading"><Search /></UniversalInput.Inner><UniversalInput.Input placeholder="Search…" /><UniversalInput.Inner position="trailing" onClick={…}><Send /></UniversalInput.Inner><UniversalInput.Bottom className="flex justify-between px-3 py-1.5"><span>2 files attached</span></UniversalInput.Bottom></UniversalInput.Field><UniversalInput.Outer label="voice" onClick={…}><Globe /></UniversalInput.Outer><UniversalInput.Below><UniversalInput.Label>8 parts annotated</UniversalInput.Label></UniversalInput.Below></UniversalInput>
Top and Bottom boxes live inside the field border and expand its height. Switch each one — the field grows and shrinks around whatever you put in: a tall map, a file strip, a slim notice, a toolbar, a caption, or nothing at all.
Unpadded by default
Padding is yours (p-2, px-3…). Dividers draw themselves.
Height from content
Auto by default; pin it with h-* or cap it with max-h-* + overflow.
Compose freely
Top, Row, Bottom — keep any of them, drop any of them, swap contents live.
Guests can view · link expires in 7 days