UNPKG

@crossed/demo

Version:

A universal & performant styling library for React Native, Next.js & React

18 lines (17 loc) 600 B
import { jsx } from "react/jsx-runtime"; import { createBadge } from "@crossed/primitive"; const Badge = createBadge({ Text: (props) => { return /* @__PURE__ */ jsx("span", { className: "text-green-900 font-bold text-sm leading-3", ...props }); }, Root: (props) => { return /* @__PURE__ */ jsx("span", { className: "bg-green-500 px-1 py-1 flex", ...props }); } }); const CreateBadgeSimpleDemo = () => { return /* @__PURE__ */ jsx(Badge, { children: /* @__PURE__ */ jsx(Badge.Text, { children: "BADGE" }) }); }; export { CreateBadgeSimpleDemo }; //# sourceMappingURL=simple.js.map