/** * ZUI Container Component * Base container for grouping elements with layout options */ import { LayoutComponent, LayoutComponentProps } from '../core/Component'; import type { Rect, Size, PaddingInput } from '../core/types'; export interface ContainerProps extends LayoutComponentProps { /** Container width */ width?: Size; /** Container height */ height?: Size; /** Internal padding */ padding?: PaddingInput; /** Background color (hex string) */ background?: string; /** Border radius */ borderRadius?: number; /** Opacity (0-1) */ opacity?: number; } /** * Container component for grouping and styling children * * @example * ```ts * const container = new Container({ * width: 200, * height: 100, * padding: 16, * background: '#1C1C1E', * borderRadius: 8, * children: [ * new Text({ text: 'Hello World' }), * ], * }); * ``` */ export declare class Container extends LayoutComponent { readonly type = "Container"; private backgroundWidget; protected getDefaultProps(): Partial; protected calculateLayout(parentRect?: Rect): void; private calculateAutoWidth; private calculateAutoHeight; protected createWidgets(): void; protected updateWidgets(): void; protected destroyWidgets(): void; protected updateWidgetPositions(): void; /** * Get inner content rect (excluding padding) */ getContentRect(): Rect; } /** * Create a Container component */ export declare function createContainer(props: ContainerProps): Container; //# sourceMappingURL=Container.d.ts.map