UNPKG

@lunalytics/ui

Version:

React based component library created to be used in Lunalytics

31 lines (30 loc) 684 B
import { jsxs as d, jsx as r } from "react/jsx-runtime"; import { c as p } from "../../index-2w0W-O47.js"; import '../../assets/button.css';const f = ({ children: s, iconLeft: o, iconRight: e, color: t = "primary", variant: a = "solid", fullWidth: u, theme: n, tabIndex: l = 0, as: m = "div", ...i }) => { const c = p("luna-button", { [`theme-${n}`]: n, [t]: t, [a]: a, "luna-button-fixed-width": !u }); return /* @__PURE__ */ d(m, { className: c, tabIndex: l, ...i, children: [ o, s && /* @__PURE__ */ r("div", { className: "luna-button-content", children: s }), e ] }); }; f.displayName = "Button"; export { f as default };