UNPKG

v12-ui

Version:

A React component library with a focus on utility-first design and accessibility.

13 lines (12 loc) 692 B
import { default as React, ReactElement, ComponentPropsWithRef } from 'react'; import { WithoutSharedProperties } from '../utils/polymorphicTypes'; type AllowedTags = 'div' | 'span' | 'section' | 'article' | 'nav' | 'aside' & keyof React.JSX.IntrinsicElements; type PolymorphicProps<T extends AllowedTags = 'div'> = { as?: T; children?: ReactElement | ReactElement[]; direction?: 'row' | 'col' | 'row-reverse' | 'col-reverse'; spacing?: number | 'none'; className?: string; } & WithoutSharedProperties<ComponentPropsWithRef<T>>; export declare const Stack: React.ForwardRefExoticComponent<Omit<PolymorphicProps<AllowedTags>, "ref"> & React.RefAttributes<any>>; export {};