UNPKG

@kadconsulting/dry

Version:
41 lines 1.39 kB
import { jsx as _jsx } from "react/jsx-runtime"; import CurrentExampleComponent from './CurrentExampleComponent'; // TODO-p1: Replace NEW-GENERATED-COMPONENT with the Desired location export default { title: 'Components/NEW-GENERATED-COMPONENT/CurrentExampleComponent', component: CurrentExampleComponent, argTypes: { 'data-testid': { control: 'text', description: 'ID for testing purposes', defaultValue: 'CurrentExampleComponent-test-id', }, passProps: { control: 'object', description: 'Object containing extra props to pass', defaultValue: {}, }, }, // Add more argTypes here based on your component props }; export const Default = { args: { 'data-testid': 'CurrentExampleComponent-test-id', // Add more default args here }, }; export const Variant = { args: { ...Default.args, // Add or modify args for this variant }, }; // Example of a story with custom render function export const CustomRendering = { render: (args) => (_jsx("div", { style: { padding: '20px', background: '#f0f0f0' }, children: _jsx(CurrentExampleComponent, { ...args }) })), args: { ...Default.args, // Add or modify args for this custom rendering }, }; //# sourceMappingURL=CurrentExampleComponent.stories.js.map