@oslokommune/punkt-react
Version:
React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo
14 lines (13 loc) • 411 B
TypeScript
/**
* Shape of a single option in a `<pkt-select>` / `<PktSelect>` component.
* Lives in shared-types so both `@oslokommune/punkt-elements` and
* `@oslokommune/punkt-react` can re-export the same canonical type.
*/
export interface IPktSelectOption {
value: string;
label: string;
selected?: boolean;
disabled?: boolean;
hidden?: boolean;
}
export type TSelectOption = IPktSelectOption;