ol-list-group-item.tsx 316 B

123456789101112131415
  1. import { ListGroupItem, ListGroupItemProps } from 'react-bootstrap'
  2. function OLListGroupItem(props: ListGroupItemProps) {
  3. const as = props.as ?? 'button'
  4. return (
  5. <ListGroupItem
  6. {...props}
  7. as={as}
  8. type={as === 'button' ? 'button' : undefined}
  9. />
  10. )
  11. }
  12. export default OLListGroupItem