RetroField
Composable form layout primitives: labels, descriptions, errors, fieldsets and group boxes with Mac OS 9 styling. Works with any form library.
Installation
npx shadcn@latest add "https://nostalgia-ui.com/r/retro-field.json"
Setup: installing any component also installs nostalgia-theme (the --os9-* tokens and os9-* utilities) via registryDependencies. To add the theme on its own: npx shadcn@latest add https://nostalgia-ui.com/r/nostalgia-theme.json
Import
import { RetroField } from "@/components/ui/retro-field"Usage
<RetroFieldSet>
<RetroFieldLegend>Sharing Setup</RetroFieldLegend>
<RetroFieldGroup>
<RetroField>
<RetroFieldLabel htmlFor="owner">Owner Name</RetroFieldLabel>
<RetroInput id="owner" />
<RetroFieldDescription>Shown to other users on the network.</RetroFieldDescription>
</RetroField>
</RetroFieldGroup>
</RetroFieldSet>Basic Field
Other computers on the network see this name.
Fieldset with Group
Group Box Variant
Horizontal Orientation
Play the system alert when an error occurs.
Tint icons in the Finder with their label color.
Choice Cards
Validation Errors
Enter a complete email address.
- Name cannot contain a colon (:).
- Name must be 31 characters or fewer.
Separator with Label
or