diff --git a/apps/demo/src/components/list.tsx b/apps/demo/src/components/list.tsx index 7d90719..077312b 100644 --- a/apps/demo/src/components/list.tsx +++ b/apps/demo/src/components/list.tsx @@ -1,7 +1,8 @@ import { forwardRef } from 'react'; -type ListProps = React.PropsWithChildren & { +type ListProps = { direction?: 'vertical' | 'horizontal'; + children: React.ReactNode; }; export function List({ direction, ...rest }: ListProps) { @@ -13,7 +14,9 @@ export function List({ direction, ...rest }: ListProps) { ); } -type ListItemProps = React.PropsWithChildren; +type ListItemProps = { + children: React.ReactNode; +}; export const ListItem = forwardRef, ListItemProps>( function ListItem(props, ref) {