({cssVariables}: {cssVariables: {[name: string]: string}})
| 90 | } |
| 91 | |
| 92 | export function CSSVariables({cssVariables}: {cssVariables: {[name: string]: string}}) { |
| 93 | return ( |
| 94 | <Table style={{marginTop: 16}}> |
| 95 | <TableHeader> |
| 96 | <TableRow> |
| 97 | <TableColumn role="columnheader">CSS Variable</TableColumn> |
| 98 | </TableRow> |
| 99 | </TableHeader> |
| 100 | <TableBody> |
| 101 | {Object.entries(cssVariables).map(([name, description]) => ( |
| 102 | <Fragment key={name}> |
| 103 | <TableRow> |
| 104 | <TableCell role="rowheader" hideBorder> |
| 105 | <code className={codeStyle}> |
| 106 | <span className={codeStyles.property}>{name}</span> |
| 107 | </code> |
| 108 | </TableCell> |
| 109 | </TableRow> |
| 110 | <TableRow> |
| 111 | <TableCell>{renderHTMLfromMarkdown(description, {forceInline: true})}</TableCell> |
| 112 | </TableRow> |
| 113 | </Fragment> |
| 114 | ))} |
| 115 | </TableBody> |
| 116 | </Table> |
| 117 | ); |
| 118 | } |
nothing calls this directly
no test coverage detected