import { Badge, BadgeProps } from "@components/ui/Badge"; import { sandboxPage } from "."; const page = sandboxPage(function BadgePage() { const list: BadgeProps[] = [ // { variant: "success" }, { variant: "gray" }, { variant: "success" }, ]; return ( <>

Badge component

{list.map((props, index) => (

{JSON.stringify( props, (key, value) => { if (key.includes("Icon")) { return ".."; } return value; }, 2 )}

Badge text
))}
); }); export default page.default; export const getStaticProps = page.getStaticProps;