@cerberus-design/react
Version:
The Cerberus Design React component library.
35 lines (34 loc) • 1.43 kB
text/typescript
import { CerberusPrimitiveProps } from '../..';
import { SelectItemGroupProps, SelectItemGroupLabelProps } from '@ark-ui/react';
import { RefAttributes, ForwardRefExoticComponent } from 'react';
/**
* This module contains the named abstractions OptionGroup and OptionGroupLabel
* components for API consistency with the Select component.
* @module 'react/select/option-group'
*/
/**
* The OptionGroup component is a group of options in the dropdown list.
* @definition [Select docs](https://cerberus.digitalu.design/react/select)
* @definition [ARK docs](https://ark-ui.com/react/docs/components/select)
* @example
* ```tsx
* <OptionGroup>
* <OptionGroupLabel>Greek gods</OptionGroupLabel>
* ...
* </OptionGroup>
* ```
*/
export declare const OptionGroup: {
(props: CerberusPrimitiveProps< SelectItemGroupProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
/**
* The OptionGroupLabel component is the label of the OptionGroup.
* @definition [Select docs](https://cerberus.digitalu.design/react/select)
* @definition [ARK docs](https://ark-ui.com/react/docs/components/select)
* @example
* ```tsx
* <OptionGroupLabel>Greek gods</OptionGroupLabel>
* ```
*/
export declare const OptionGroupLabel: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps< SelectItemGroupLabelProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<unknown>>;