import clsx from 'clsx' import type { ComponentProps, ReactNode } from 'react' export interface StackedListProps extends ComponentProps<'dl'> { children: ReactNode } export const StackedList = (props: StackedListProps) => { const { className, ...rest } = props return (
) } export interface StackedListItemProps extends ComponentProps<'dt'> { name: ReactNode } StackedList.Item = function StackedListItem(props: StackedListItemProps) { const { name, className, ...rest } = props return (
{name}
) }