gestalt
Version:
A set of React UI components which enforce Pinterest's design language
23 lines (22 loc) • 635 B
TypeScript
type Props = {
/**
* Used to disable the option.
*/
disabled?: boolean;
/**
* The visible label for the option. Don't forget to localize!
*/
label: string;
/**
* The underlying value of the option.
*/
value: string;
};
/**
* Use [SelectList.Option](https://gestalt.pinterest.systems/selectlist#SelectList.Option) to define the available options within SelectList.
*/
declare function SelectListOption({ disabled, label, value }: Props): import("react/jsx-runtime").JSX.Element;
declare namespace SelectListOption {
var displayName: string;
}
export default SelectListOption;