Payload Field Types
uifoundry/field-typesFreeUtility
uifoundry publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by uifoundry on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://uifoundry.dev/r/field-types.jsonSource
1import type { Field } from "payload";23export type TextField = Extract<Field, { type: "text" }>;4export type ArrayField = Extract<Field, { type: "array" }>;5export type DateField = Extract<Field, { type: "date" }>;6export type SelectField = Extract<Field, { type: "select" }>;7export type UploadField = Extract<Field, { type: "upload" }>;8export type RelationshipField = Extract<Field, { type: "relationship" }>;910export type CollapsibleField = Extract<Field, { type: "collapsible" }>;11export type GroupField = Extract<Field, { type: "group" }>;
What it pulls in
npm packages
Files it writes
More from uifoundry
All 54 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Block Constantsblock-constants | uifoundry | Utilities | Free | no deps | |
| Social Iconssocial-icons | uifoundry | Utilities | Free | no deps | |
| Tailwind Style Utilsstyle-utils | uifoundry | Utilities | Free | 2 deps |
