@react-md/form
Version:
This package is for creating all the different form input types.
20 lines (19 loc) • 722 B
TypeScript
/// <reference types="react" />
import type { SimpleListItemProps } from "@react-md/list";
export interface OptionProps extends SimpleListItemProps {
/**
* Boolean if the option is currently selected via aria-activedescendant
* movement.
*/
focused: boolean;
/**
* Boolean if the option's value is equal to the current listbox's value if it
* is acting as a select component.
*/
selected: boolean;
}
/**
* The Option component is a simple wrapper for the `SimpleListItem` that adds
* some required a11y for behaving as the `option` role.
*/
export declare const Option: import("react").ForwardRefExoticComponent<OptionProps & import("react").RefAttributes<HTMLLIElement>>;