import * as React from 'react'; import classnames from 'classnames'; import { forwardRef } from 'react'; import { Box, BoxProps } from '../box/box'; import { TypeSize } from '../types'; import './List.css'; /** * A list component that can be used to display a list of items. */ export interface ListProps extends BoxProps { /** * Spacing applied between child ListItems, values are global spacing variables. * * @default "x1" */ gap?: TypeSize; } export const List = forwardRef((props, ref) => { const { gap = 'x1', ...rest } = props; const classes = classnames('List', `List--${gap}`); return ( ); });