UNPKG

asciitorium

Version:
13 lines (12 loc) 436 B
import { Component, ComponentProps } from '../core/Component.js'; import { Option } from './Option.js'; export interface OptionGroupProps<T = any> extends Omit<ComponentProps, 'children'> { label: string; children?: Option<T>[]; } export declare class OptionGroup<T = any> extends Component { readonly label: string; readonly children: Option<T>[]; constructor(props: OptionGroupProps<T>); draw(): string[][]; }