mirror of
https://github.com/rio-labs/rio.git
synced 2026-05-11 13:59:34 -05:00
24 lines
627 B
TypeScript
24 lines
627 B
TypeScript
import { ComponentBase, ComponentState } from './componentBase';
|
|
import { LayoutContext } from '../layouting';
|
|
|
|
export type SeparatorListItemState = ComponentState & {
|
|
_type_: 'SeparatorListItem-builtin';
|
|
};
|
|
|
|
export class SeparatorListItemComponent extends ComponentBase {
|
|
state: Required<SeparatorListItemState>;
|
|
|
|
createElement(): HTMLElement {
|
|
return document.createElement('div');
|
|
}
|
|
|
|
updateElement(
|
|
deltaState: SeparatorListItemState,
|
|
latentComponents: Set<ComponentBase>
|
|
): void {}
|
|
|
|
updateNaturalHeight(ctx: LayoutContext): void {
|
|
this.naturalHeight = 1;
|
|
}
|
|
}
|