UNPKG

@radix-ui/themes

Version:

[![Radix Themes Logo](https://radix-ui.com/social/themes.png)](https://radix-ui.com/themes)

16 lines (15 loc) 657 B
import * as React from 'react'; import type { ComponentPropsWithout, RemovedProps } from '../helpers/index.js'; import type { MarginProps, LayoutProps, GridOwnProps } from '../props/index.js'; interface CommonGridProps extends MarginProps, LayoutProps, GridOwnProps { } type GridDivProps = { as?: 'div'; } & ComponentPropsWithout<'div', RemovedProps>; type GridSpanProps = { as: 'span'; } & ComponentPropsWithout<'span', RemovedProps>; type GridProps = CommonGridProps & (GridSpanProps | GridDivProps); declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>; export { Grid }; export type { GridProps };