UNPKG

retro-react

Version:

A React component library for building retro-style websites

34 lines (33 loc) 936 B
/// <reference types="react" /> import { ThemeUICSSObject } from 'theme-ui'; interface GroupProps extends React.HTMLAttributes<HTMLDivElement> { /** * The content of the group. */ children: React.ReactNode; /** * The gap between each child element. * * @default '10px' */ gap?: string; /** * The direction of the group. * Can be either 'row' or 'column'. * * @default 'row' */ direction?: 'row' | 'column'; sx?: ThemeUICSSObject; } /** * Group is a simple layout component that provides a way to group and apply layout to its children. * * @example * <Group gap="20px" direction="row"> * <Chip color="success">AB</Chip> * <Chip color="error">CD</Chip> * </Group> */ export declare const Group: import("react").ForwardRefExoticComponent<GroupProps & import("react").RefAttributes<HTMLDivElement>>; export {};