UNPKG

pc-custom-components

Version:
12 lines (11 loc) 514 B
import { jsx as _jsx } from "react/jsx-runtime"; import "./button.css"; /** * Primary UI component for user interaction */ export const Button = ({ primary = false, size = "medium", backgroundColor, label, ...props }) => { const mode = primary ? "storybook-button--primary" : "storybook-button--secondary"; return (_jsx("button", { type: "button", className: ["storybook-button", `storybook-button--${size}`, mode].join(" "), style: { backgroundColor }, ...props, children: label })); };