monday-ui-react-core
Version:
Official monday.com UI resources for application development in React.js
19 lines (16 loc) • 537 B
JSX
import React from "react";
import cx from "classnames";
import { ComponentName } from "vibe-storybook-components";
import "./component-name-decorator.scss";
export const ComponentNameDecorator = ({ children, className, withFoundationBackground = false }) => {
return (
<ComponentName
className={cx("vibe-storybook-component-name", className, {
"vibe-storybook-component-name--foundation": withFoundationBackground
})}
>
{children}
</ComponentName>
);
};
export default ComponentNameDecorator;