Field
import {Field} from "@qui/react-vscode"
Examples
Showcase
Dark Modern
import {ReactNode} from "react"import {Field, Input} from "@qui/react-vscode"export default function FieldShowcase(): ReactNode {return (<Field className="w-48"><Input /></Field>)}
API
FieldProps
| Name & Description | Option(s) | Default |
|---|---|---|
ReactNode | ||
The component used for the root node. It can be a React component or element. |
| 'div' |
Indicates whether the field is disabled. |
| |
id attribute. If
omitted, a unique identifier will be automatically generated for
accessibility. |
| |
Indicates whether the field is invalid. |
| |
Indicates whether the field is read-only. |
| |
Optional ref to the root element. |
| |
Indicates whether the field is required. |
|
Type
| ElementType| ComponentType
Default
'div'
Description
The component used for the root node. It can be a React component or element.
Type
boolean
Description
Indicates whether the field is disabled.
Type
string
Description
id attribute. If
omitted, a unique identifier will be automatically generated for
accessibility.
Type
boolean
Description
Indicates whether the field is invalid.
Type
boolean
Description
Indicates whether the field is read-only.
Type
Ref<HTMLElement> &ComponentPropsWithRef['ref']
Description
Optional ref to the root element.
Type
boolean
Description
Indicates whether the field is required.