UNPKG

@pagopa/mui-italia

Version:

[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).

24 lines (23 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Default = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const material_1 = require("@mui/material"); const _theme_1 = require("../../theme/index"); const CopyToClipboardButton_1 = require("./CopyToClipboardButton"); const componentMaxWidth = 900; exports.default = { title: "Components/CopyToClipboardButton", component: CopyToClipboardButton_1.CopyToClipboardButton, parameters: { chromatic: { viewports: _theme_1.breakpointsChromaticValues.filter((resolution) => resolution <= componentMaxWidth), }, }, argTypes: { value: { type: "string", required: true }, tooltipTitle: { type: "string" }, }, }; const Default = (args) => ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { m: 8 } }, { children: (0, jsx_runtime_1.jsx)(CopyToClipboardButton_1.CopyToClipboardButton, Object.assign({}, args)) }))); exports.Default = Default;