```ts // YourComponent.stories.js import React from 'react'; import { Story, Meta } from '@storybook/react/types-6-0'; import { YourComponent, YourComponentProps } from './your-component' // a function to apply some computation const someFunction = (valuePropertyA, valuePropertyB) => { // makes some computations and returns something }; export default { component: YourComponent, title: 'A complex case with a function', // creates specific argTypes with options argTypes: { propertyA: { control: { type: 'select', options: [ 'Item One', 'Item Two', 'Item Three' ], }, }, propertyB: { control: { type: 'select', options: [ 'Another Item One', 'Another Item Two', 'Another Item Three' ], }, }, }, } as Meta; const Template: Story = ({propertyA, propertyB, ...rest}) => { const someFunctionResult = someFunction(propertyA, propertyB); return ; }; ```