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 & DescriptionOption(s)Default
React children prop.
ReactNode
The component used for the root node. It can be a React component or element.
| ElementType
| ComponentType
'div'
Indicates whether the field is disabled.
boolean
id attribute. If omitted, a unique identifier will be automatically generated for accessibility.
string
Indicates whether the field is invalid.
boolean
Indicates whether the field is read-only.
boolean
Optional ref to the root element.
Ref<HTMLElement> &
ComponentPropsWithRef['ref']
Indicates whether the field is required.
boolean
Description
React children prop.
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.