UNPKG

@tomorrowevening/ux-lib

Version:

React components extracted from Hermes editor

16 lines (15 loc) 675 B
import { default as React } from 'react'; import { InspectorFieldProps } from './InspectorField'; import { GroupData, FieldValue } from './types'; export interface InspectorGroupProps { title: string; defaultOpen?: boolean; items: (InspectorFieldProps | InspectorGroupProps)[]; onToggle?: (value: boolean) => void; } export interface InspectorGroupRef { addGroup: (data: GroupData) => React.RefObject<InspectorGroupRef | null>; removeGroup: (name: string) => void; setField: (name: string, value: FieldValue) => void; } export declare const InspectorGroup: React.NamedExoticComponent<InspectorGroupProps & React.RefAttributes<InspectorGroupRef>>;