MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / List

Function List

packages/email/src/components/list.tsx:5–15  ·  view source on GitHub ↗
({ items }: { items: React.ReactNode[] })

Source from the content-addressed store, hash-verified

3import React from 'react';
4
5export function List({ items }: { items: React.ReactNode[] }) {
6 return (
7 <ul style={{ paddingLeft: 20 }}>
8 {items.map((node, index) => (
9 <li key={index.toString()}>
10 <Text style={{ marginBottom: 2, marginTop: 2 }}>{node}</Text>
11 </li>
12 ))}
13 </ul>
14 );
15}

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected