UNPKG

@lunit/oui

Version:

Lunit Oncology UI components

22 lines (21 loc) 851 B
import type { AnalysisBarProps } from '../AnalysisBar'; import { FreeTextProps } from '../FreeText'; import type { PresentationElementSize } from '../presentations.types'; import { StatisticProps } from '../Statistic'; import type { ToggleControlProps } from '../ToggleControl'; export type ToggleControlGroupBehavior = 'exclusive' | 'multi'; export interface ToggleGroupControlSpec { componentType: 'toggleGroup'; title: string; behavior?: ToggleControlGroupBehavior; size?: PresentationElementSize; tooltip?: (StatisticProps | FreeTextProps)[]; bar?: AnalysisBarProps; checked: boolean; childToggles: ToggleControlProps[]; } export interface ToggleControlGroupProps extends ToggleGroupControlSpec { onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; disabled?: boolean; isDimmed?: boolean; }