irisrad-ui
Version:
UI elements developered for IRIS R&D Group Inc
34 lines (27 loc) • 925 B
JavaScript
import React from "react";
import { IrisMUIcon } from "./IrisMUIcon"; // ui element
// export for StoryBook as a tab
export default {
title: "Example/IrisMUIcon", // could be represent on the url, example could be a root of the node
component: IrisMUIcon,
// parameters: {
// layout: "none", // centered | fullscreen | padded | none,
// },
// custom arg types with storybook's add on here
// https://storybook.js.org/docs/react/essentials/controls
// argTypes: {
// backgroundColor: {control: "color"}
// },
};
const Template = (args) => <IrisMUIcon {...args} />;
// define a variant of the ui component
export const Primary = Template.bind({});
// assign arguement (props) to render the ui component
Primary.args = {
iconTitle: "home",
size: "small",
};
// export const Secondary = Template.bind({});
// Secondary.args = {
// label: "Button",
// };