UNPKG

asciitorium

Version:
20 lines (19 loc) 589 B
import { Component } from '../core/Component.js'; import { State } from '../core/State.js'; export class OptionGroup extends Component { constructor(props) { const { children, label, ...componentProps } = props; super({ ...componentProps, width: 0, height: 0, visible: new State(false), // Data-only component, not visual }); this.label = label; this.children = children || []; } draw() { // OptionGroup is not rendered directly, it's just a container return [[]]; } }