asciitorium
Version:
an ASCII CLUI framework
36 lines (35 loc) • 1.01 kB
TypeScript
import { Component, ComponentProps } from '../core/Component.js';
/**
* Properties for Fragment component
*/
export interface FragmentProps extends ComponentProps {
}
/**
* Fragment component that acts as an invisible container for grouping child components.
*
* Similar to React Fragment, this component renders its children without adding any
* visual elements like borders or backgrounds. It's useful for grouping components
* without affecting the layout structure.
*
* Example usage:
* ```tsx
* <Fragment>
* <Text content="First item" />
* <Text content="Second item" />
* </Fragment>
*
* // Or using the shorthand syntax:
* <>
* <Text content="First item" />
* <Text content="Second item" />
* </>
* ```
*/
export declare class Fragment extends Component {
constructor(props: FragmentProps);
/**
* Fragment renders completely transparently - only its children are visible.
* The Fragment itself adds no visual elements.
*/
draw(): string[][];
}