UNPKG

reablocks

Version:
37 lines (35 loc) 952 B
import { StackTheme } from './StackTheme'; import { FC, HTMLAttributes, LegacyRef } from 'react'; export interface StackProps extends HTMLAttributes<HTMLDivElement> { /** * If true, the stack will be dense. */ dense?: boolean; /** * If true, the stack will be inline. */ inline?: boolean; /** * The direction of the stack. */ direction?: 'row' | 'column' | 'rowReverse' | 'columnReverse'; /** * How the content is arranged inside the stack. */ alignItems?: 'start' | 'end' | 'center' | 'stretch'; /** * How the content is arranged inside the stack. */ justifyContent?: 'start' | 'end' | 'center' | 'spaceBetween'; /** * Theme for the Stack. */ theme?: StackTheme; } export interface StackRef { /** * Reference to the stack element. */ ref?: LegacyRef<HTMLDivElement>; } export declare const Stack: FC<StackProps & StackRef>;