@equinor/fusion-react-person
Version:
React component for displaying an person information
14 lines • 1.12 kB
TypeScript
import type { BaseSyntheticEvent, PropsWithChildren } from 'react';
import { type ComponentProps } from '@equinor/fusion-react-utils';
import HTMLPersonSelectCustomElement, { type PersonSelectEvent as HTMLPersonSelectEvent, type PersonSelectElementProps } from '@equinor/fusion-wc-person/select';
type ElementAttributes = PropsWithChildren<Partial<Pick<PersonSelectElementProps, 'autofocus' | 'disabled' | 'dropdownHeight' | 'graphic' | 'initialText' | 'label' | 'leadingIcon' | 'meta' | 'multiple' | 'placeholder' | 'selectedId' | 'selectedPerson' | 'value' | 'variant'>>>;
export type PersonSelectEvent = BaseSyntheticEvent<HTMLPersonSelectEvent>;
type ElementEvents = {
onSelect?: (e: PersonSelectEvent) => void;
onDropdownClosed?: (e: CustomEvent) => void;
};
type ElementProps = ElementAttributes & ElementEvents;
export type PersonSelectProps = ComponentProps<HTMLPersonSelectCustomElement, ElementProps>;
export declare const PersonSelect: import("@equinor/fusion-react-utils").WebComponent<HTMLPersonSelectCustomElement, ElementProps>;
export default PersonSelect;
//# sourceMappingURL=PersonSelect.d.ts.map