UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

58 lines (57 loc) 1.59 kB
import { GoabDropdownOnChangeDetail, GoabIconType, Margins } from '@abgov/ui-components-common'; import { JSX } from 'react'; interface WCProps extends Margins { ref: React.RefObject<HTMLElement | null>; arialabel?: string; arialabelledby?: string; disabled?: string; error?: string; filterable?: string; leadingicon?: string; maxheight?: string; multiselect?: string; name?: string; native?: string; placeholder?: string; value?: string; width?: string; maxwidth?: string; relative?: string; id?: string; autocomplete?: string; testid?: string; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-dropdown": WCProps & React.HTMLAttributes<HTMLElement>; } } } export interface GoabDropdownProps extends Margins { name?: string; value?: string[] | string; onChange?: (detail: GoabDropdownOnChangeDetail) => void; ariaLabel?: string; ariaLabelledBy?: string; id?: string; children?: React.ReactNode; disabled?: boolean; error?: boolean; filterable?: boolean; leadingIcon?: GoabIconType; maxHeight?: string; multiselect?: boolean; native?: boolean; placeholder?: string; testId?: string; width?: string; maxWidth?: string; autoComplete?: string; /*** * @deprecated This property has no effect and will be removed in a future version */ relative?: boolean; } export declare function GoabDropdown(props: GoabDropdownProps): JSX.Element; export default GoabDropdown;