UNPKG

@crossed/demo

Version:

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

37 lines (36 loc) 981 B
import { jsx, jsxs } from "react/jsx-runtime"; import { styled } from "@crossed/styled"; import { Pressable } from "react-native"; const Button = styled(Pressable, { className: ["px-3 py-2", "border border-neutral-700", "bg-neutral-800"], props: { role: "button" }, variants: { rounded: { true: { className: ["rounded"] }, sm: { className: ["rounded-sm"] }, md: { className: ["rounded-md"] }, lg: { className: ["rounded-lg"] } } } }); const ButtonVariantsNativeDemo = () => { return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5 justify-center", children: [ /* @__PURE__ */ jsx(Button, { children: "no rounded" }), /* @__PURE__ */ jsx(Button, { rounded: true, children: "rounded" }), /* @__PURE__ */ jsx(Button, { rounded: "lg", children: "rounded-lg" }) ] }); }; export { ButtonVariantsNativeDemo }; //# sourceMappingURL=Variants.native.js.map