Schema Field Row

API schema field row with a monospace field name, a required badge, the type and a description, in three columns on desktop for docs and reference pages.

src/registry/ui/schema-field-row.tsx/r/schema-field-row.json

Installation#

bash
npx shadcn@latest add @minidev/schema-field-row

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/schema-field-row.json

Usage#

tsx
import { SchemaFieldRow } from "@/components/ui/schema-field-row"

export function Example() {
  return (
    <SchemaFieldRow name="id" type="string" required description="Stable identifier" />
  )
}

API reference#

SchemaFieldRow props
PropTypeDefault
name*string-
type*string-
requiredboolean-
descriptionstring-
classNamestring-

* required

Dependencies#

npm

React only

Built from

Examples#

All Developer tool UI components for React