```ts
// Button.stories.ts

import { Story, Meta } from '@storybook/angular/types-6-0';

import Button from './button.component';

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

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

export const ExampleStory: Story<Button> = (args) => {
  //👇 Destructure the label from the args object
  const { label } = args;
  
  //👇 Assigns the function result to a variable and pass it as a prop into the component
  const functionResult = someFunction(label);
  return {
    props: {
      ...args,
      label: functionResult,
    },
  };
};
ExampleStory.args = {
  primary: true,
  size: 'small',
  label: 'button',
};
```
