UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

22 lines 858 B
import * as React from 'react'; import { FieldRoot } from "../root/FieldRoot.js"; import type { BaseUIComponentProps } from "../../utils/types.js"; /** * Groups individual items in a checkbox group or radio group with a label and description. * Renders a `<div>` element. * * Documentation: [Base UI Field](https://base-ui.com/react/components/field) */ export declare const FieldItem: React.ForwardRefExoticComponent<FieldItemProps & React.RefAttributes<HTMLDivElement>>; export interface FieldItemProps extends BaseUIComponentProps<'div', FieldItem.State> { /** * Whether the wrapped control should ignore user interaction. * The `disabled` prop on `<Field.Root>` takes precedence over this. * @default false */ disabled?: boolean; } export declare namespace FieldItem { type State = FieldRoot.State; type Props = FieldItemProps; }