```ts // YourComponent.stories.ts import { YourComponent } from './your-component.component'; export default { component: YourComponent, //👇 Creates specific argTypes with options argTypes: { propertyA: { options: ['Item One', 'Item Two', 'Item Three'], control: { type: 'select' }, // automatically inferred when 'options' is defined }, propertyB: { options: ['Another Item One', 'Another Item Two', 'Another Item Three'], }, }, }; //👇 Some function to demonstrate the behavior const someFunction = (valuePropertyA: String, valuePropertyB: String) => { // Makes some computations and returns something }; export const ExampleStory = { args: { propertyA: 'Something', propertyB: 'Something else' }, render: (args) => { const { propertyA, propertyB } = args; //👇 Assigns the function result to a variable const someFunctionResult = someFunction(propertyA, propertyB); return { props: { ...args, someProperty: someFunctionResult, }, }; }, }; ```