UNPKG

geostyler

Version:
15 lines (14 loc) 588 B
import { default as React } from 'react'; import { GraphicType } from 'geostyler-style'; export interface GraphicTypeFieldProps { /** List of selectable GraphicTypes for Select */ graphicTypes?: GraphicType[]; /** If true GraphicTypeField can be cleared */ clearable?: boolean; /** Currently selected GraphicType */ value?: GraphicType; /** Callback when selection changes */ onChange?: (type: GraphicType) => void; } /** GraphicTypeField to select between different GraphicTypes */ export declare const GraphicTypeField: React.FC<GraphicTypeFieldProps>;