@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
29 lines (28 loc) • 770 B
JavaScript
import { jsx as s } from "react/jsx-runtime";
import { R as e } from "../../index-vcSp8YRZ.js";
import { cn as n } from "../../utils/index.js";
import { rootVariants as p } from "./Tabs.variants.js";
import { Content as f } from "./components/Content.js";
import { List as c } from "./components/List.js";
import { Trigger as g } from "./components/Trigger.js";
const r = ({ children: o, theme: a, className: m, orientation: t, ...i }) => /* @__PURE__ */ s(
e,
{
...i,
"data-theme": a,
"data-orientation": t,
"aria-orientation": t,
className: n(p({ variant: t, className: m })),
children: o
}
);
r.displayName = "KonstructTabs";
r.Content = f;
r.List = c;
r.Trigger = g;
export {
f as Content,
c as List,
r as Tabs,
g as Trigger
};