@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
17 lines (16 loc) • 843 B
TypeScript
import React from 'react';
import { IOption } from './types/option';
export declare const OptionComponent: React.ForwardRefExoticComponent<IOption<unknown> & React.RefAttributes<HTMLElement>>;
declare const OptionBoundary: <V extends string | unknown>(props: IOption<V>, ref: React.ForwardedRef<HTMLElement> | undefined | null) => JSX.Element;
declare const Option: <V extends string | unknown>(props: React.PropsWithChildren<IOption<V>> & {
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;
}) => ReturnType<typeof OptionBoundary>;
/**
* @description
* Option component is used to create a list of options.
* You can combine with ItemRove component to create a list of options with keyboard navigation.
* @link ItemRove
* @param {React.PropsWithChildren<IOption<V>>} props
* @returns {JSX.Element}
*/
export { Option };