import React, { forwardRef } from "react"; import { Box, BoxProps } from "../Box"; interface ListProps extends BoxProps { as?: "ol" | "ul"; } /** * @deprecated use a
  • element instead */ const ListItem = forwardRef((props, ref) => { return ; }); /** * @deprecated use a
      or
        elements instead */ const List = forwardRef( (props, ref) => { const { as = "ul", ...rest } = props; return ; }, ); const CompoundList = Object.assign(List, { Item: ListItem, }); export { CompoundList as List };