UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

26 lines (25 loc) 1.04 kB
import { BoxProps, ElementProps, Factory, StylesApiProps } from '../../core'; import { ComboboxStringGroupData } from '../Combobox'; import { __BaseInputProps, __InputStylesNames } from '../Input'; export interface NativeSelectProps extends BoxProps, Omit<__BaseInputProps, 'pointer'>, StylesApiProps<NativeSelectFactory>, ElementProps<'select', 'size'> { /** * Data used to render options. Accepts strings, objects with label/value, * or grouped options. If `children` prop is provided, `data` will be ignored. */ data?: ComboboxStringGroupData; } export type NativeSelectFactory = Factory<{ props: NativeSelectProps; ref: HTMLSelectElement; stylesNames: __InputStylesNames; }>; export declare const NativeSelect: import("../..").MantineComponent<{ props: NativeSelectProps; ref: HTMLSelectElement; stylesNames: __InputStylesNames; }>; export declare namespace NativeSelect { type Props = NativeSelectProps; type Factory = NativeSelectFactory; type StylesNames = __InputStylesNames; }