UNPKG

petals-ui

Version:
16 lines (15 loc) 490 B
import { BaseHeadlessComponent } from '../../basic'; import { getPanelComponentName } from './utils'; class PanelHeadlessComponent extends BaseHeadlessComponent { getComponentName() { return getPanelComponentName(); } getClassNames() { const classNames = [this.getComponentName()]; if (this.sc.fixed) { classNames.push(this.getModifierClassName('fixedHeight')); } return classNames; } } export { PanelHeadlessComponent };