Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 1x 1x 1x 66x | import * as icons from '.'; import { css } from '@emotion/css'; const cssClassName = css` display: flex; flex-wrap: wrap; margin: -4px; .iconInfo { margin: 4px; padding: 8px 16px; background-color: #ebebeb; border-radius: 5px; width: 110px; text-align: center; font-size: 10px; } .iconContainer { background-color: #ffffff; width: 50px; margin: 0 auto 8px auto; } `; const IconList = () => { return ( <> <h1>Icons</h1> <div className={cssClassName}> {Object.entries(icons).map(([name, Icon], i) => ( <div className="iconInfo" key={i}> <div className="iconContainer">{<Icon color="#333333" />}</div> {name} </div> ))} </div> </> ); }; export default IconList; |