@spicy-ui/core
Version:
A themable and extensible React UI library, ready to use out of the box
14 lines (13 loc) • 730 B
TypeScript
import { ExtendedFlexboxProps, SpaceProps } from '@spicy-ui/styled-system';
import * as React from 'react';
import { SxProp } from '../../system';
import { AsProp, ChildrenProp, HTMLAttributes } from '../../types';
export interface StackProps extends HTMLAttributes, ExtendedFlexboxProps, AsProp, ChildrenProp, SxProp {
/** Spacing between each stack element. */
spacing?: SpaceProps['margin'];
/** Set a custom divider element. */
divider?: React.ReactElement;
/** Set to `true` if each child of the stack should be wrapped in a `Box` component. */
shouldWrapChildren?: boolean;
}
export declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;