({
title,
items,
className,
icon = { Component: VIcon },
typographyClasses = {
title: 'font-bold typo-body',
listItem: 'typo-callout',
},
}: BoxListProps)
| 35 | } |
| 36 | |
| 37 | export const BoxList = ({ |
| 38 | title, |
| 39 | items, |
| 40 | className, |
| 41 | icon = { Component: VIcon }, |
| 42 | typographyClasses = { |
| 43 | title: 'font-bold typo-body', |
| 44 | listItem: 'typo-callout', |
| 45 | }, |
| 46 | }: BoxListProps): ReactElement => { |
| 47 | return ( |
| 48 | <Box className={className}> |
| 49 | <h3 className={typographyClasses.title}>{title}</h3> |
| 50 | <ul className="flex flex-col gap-1"> |
| 51 | {items.map((item) => ( |
| 52 | <li key={item} className="flex flex-row items-start gap-1"> |
| 53 | <icon.Component |
| 54 | aria-hidden |
| 55 | className={icon.className} |
| 56 | size={IconSize.XSmall} |
| 57 | /> |
| 58 | <span className={classNames('flex-1', typographyClasses.listItem)}> |
| 59 | {item} |
| 60 | </span> |
| 61 | </li> |
| 62 | ))} |
| 63 | </ul> |
| 64 | </Box> |
| 65 | ); |
| 66 | }; |
| 67 | |
| 68 | export interface BoxContentImageProps extends BoxBaseProps { |
| 69 | title: string; |
nothing calls this directly
no outgoing calls
no test coverage detected