BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ora-ui/form

form

ora-ui/form
FreeComponent

ora-ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by ora-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ora-ui.com/r/form.json

Source

registry/ui/form.tsxora-ui.com/r/form.json
1'use client';
2
3import { Field as FieldPrimitive } from '@base-ui/react/field';
4import { Fieldset as FieldsetPrimitive } from '@base-ui/react/fieldset';
5import { Form as FormPrimitive } from '@base-ui/react/form';
6
7import { cn } from '@/registry/lib/utils';
8
9function Field({ className, ...props }: FieldPrimitive.Root.Props) {
10 return (
11 <FieldPrimitive.Root
12 data-slot="field"
13 className={cn('flex flex-col gap-1.5', className)}
14 {...props}
15 />
16 );
17}
18
19function FieldLabel({ className, ...props }: FieldPrimitive.Label.Props) {
20 return (
21 <FieldPrimitive.Label
22 data-slot="field-label"
23 className={cn(
24 'text-sm font-medium text-primary data-invalid:text-(--destructive-secondary)',
25 className
26 )}
27 {...props}
28 />
29 );
30}
31
32function FieldControl({ className, ...props }: FieldPrimitive.Control.Props) {
33 return <FieldPrimitive.Control data-slot="field-control" className={cn(className)} {...props} />;
34}
35
36function FieldDescription({ className, ...props }: FieldPrimitive.Description.Props) {
37 return (
38 <FieldPrimitive.Description
39 data-slot="field-description"
40 className={cn('text-xs text-muted', className)}
41 {...props}
42 />
43 );
44}
45
46function FieldValidity(props: FieldPrimitive.Validity.Props) {
47 return <FieldPrimitive.Validity data-slot="field-validity" {...props} />;
48}
49
50function FieldError({ className, ...props }: FieldPrimitive.Error.Props) {
51 return (
52 <FieldPrimitive.Error
53 data-slot="field-error"
54 className={cn('text-xs text-(--destructive-secondary)', className)}
55 {...props}
56 />
57 );
58}
59
60function Form({ className, ...props }: FormPrimitive.Props) {
61 return <FormPrimitive data-slot="form" className={cn(className)} {...props} />;
62}
63
64function Fieldset({ className, ...props }: FieldsetPrimitive.Root.Props) {
65 return (
66 <FieldsetPrimitive.Root
67 data-slot="fieldset"
68 className={cn('flex flex-col gap-4 border-0 p-0 m-0', className)}
69 {...props}
70 />
71 );
72}
73
74function FieldsetLegend({ className, ...props }: FieldsetPrimitive.Legend.Props) {
75 return (
76 <FieldsetPrimitive.Legend
77 data-slot="fieldset-legend"
78 className={cn('text-sm font-medium text-primary', className)}
79 {...props}
80 />
81 );
82}
83
84export {
85 Form,
86 Field,
87 FieldLabel,
88 FieldControl,
89 FieldDescription,
90 FieldValidity,
91 FieldError,
92 Fieldset,
93 FieldsetLegend,
94};

What it pulls in

npm packages

  • @base-ui/react

Other registry items

  • utils

Files it writes

  • registry/ui/form.tsx

Facts

Registry
ora-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on ora-ui ora-ui.com ora-ui/ora-ui on GitHub Raw registry item This item as JSON

More from ora-ui

All 31 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionora-uiComponentsFree2 deps
alert-dialogalert-dialogora-uiComponentsFree1 dep
avataravatarora-uiComponentsFree1 dep
avatar-groupavatar-groupora-uiComponentsFreeno deps
badgebadgeora-uiComponentsFree2 deps
buttonbuttonora-uiComponentsFree2 deps
button-groupbutton-groupora-uiComponentsFree2 deps
checkboxcheckboxora-uiComponentsFree3 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex