@tachui/primitives
Version:
Basic UI components for tachUI framework
35 lines • 1.32 kB
TypeScript
/**
* Spacer Component
*
* SwiftUI-inspired Spacer component that expands to fill available space
* along the main axis of its container. Behaves like SwiftUI.Spacer.
*/
import type { ModifiableComponent, ModifierBuilder } from '@tachui/core';
import type { ComponentInstance, ComponentProps, DOMNode } from '@tachui/core';
import { ComponentWithCSSClasses, type CSSClassesProps } from '@tachui/core';
/**
* Spacer component properties with CSS classes support
*/
export interface SpacerProps extends ComponentProps, CSSClassesProps {
minLength?: number;
}
/**
* Spacer component implementation with CSS classes support
*/
export declare class SpacerComponent extends ComponentWithCSSClasses implements ComponentInstance<SpacerProps> {
readonly type: "component";
readonly id: string;
readonly props: SpacerProps;
constructor(props: SpacerProps);
render(): DOMNode;
}
/**
* Create a Spacer component with optional minimum length
*/
export declare function Spacer(minLength?: number): ModifiableComponent<SpacerProps> & {
modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>;
};
export declare function Spacer(props?: SpacerProps): ModifiableComponent<SpacerProps> & {
modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>;
};
//# sourceMappingURL=Spacer.d.ts.map