@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
24 lines (23 loc) • 554 B
JavaScript
import { jsx as e } from "react/jsx-runtime";
import { Box as a } from "@mui/material";
import { useState as l } from "react";
import m from "../ColorPicker/ColorPicker.es.js";
const s = (o) => {
const [t, n] = l(o.value);
return /* @__PURE__ */ e(a, { m: "5rem 10rem", children: /* @__PURE__ */ e(m, { ...o, value: t, onChange: (r) => {
n(r);
} }) });
}, u = {
title: "Components/ColorPicker",
component: s
}, d = {
args: {
disabled: !1,
value: "#F44336",
onChange: () => ""
}
};
export {
d as Default,
u as default
};