MCPcopy Create free account
hub / github.com/dailydotdev/apps / BoxList

Function BoxList

packages/shared/src/features/onboarding/shared/Box.tsx:37–66  ·  view source on GitHub ↗
({
  title,
  items,
  className,
  icon = { Component: VIcon },
  typographyClasses = {
    title: 'font-bold typo-body',
    listItem: 'typo-callout',
  },
}: BoxListProps)

Source from the content-addressed store, hash-verified

35}
36
37export 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
68export interface BoxContentImageProps extends BoxBaseProps {
69 title: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected