```js
// Button.stories.js

import Button from './Button.vue';

export default {
  title: 'Button',
  component: Button,
  //👇 Creates specific argTypes
  argTypes: {
    backgroundColor: { control: 'color' },
  },
};

//👇 Some function to demonstrate the behavior
const someFunction = (someValue) => {
  return `i am a ${someValue}`;
};

export const ExampleStory = (args) => {
  //👇 Assigns the function result to a variable
  const functionResult = someFunction(args.label);
  return {
    components: { Button },
    setup() {
      //👇 The args will now be passed down to the template
      return {
        args: {
          ...args,
          //👇 Replaces arg variable with the override (without the need of mutation)
          label: functionResult,
        },
      };
    },
    template: '<Button v-bind="args" />',
  };
};
ExampleStory.args = {
  primary: true,
  size: 'small',
  label: 'button',
};
```
