Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: custom story meta config #26901

Open
agentoverride01 opened this issue Apr 21, 2024 · 0 comments
Open

[Bug]: custom story meta config #26901

agentoverride01 opened this issue Apr 21, 2024 · 0 comments

Comments

@agentoverride01
Copy link

agentoverride01 commented Apr 21, 2024

Describe the bug

I want to create a default or custom meta config for a component story like

or using Object.assign doesnt work also

const defineCustomMeta = () => {
 return {
   ....
 }
}

const meta = defineCustomMeta()

export default meta

To Reproduce

create function that contains custom Meta config

const defineCustomMeta = () => {
 return {
   ....
 }
}


const meta = defineCustomMeta()

export default meta

System

Storybook Environment Info:

  System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M1 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.12.2/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm <----- active
  Browsers:
    Chrome: 124.0.6367.60
    Edge: 124.0.2478.51
    Safari: 17.4.1
  npmGlobalPackages:
    @storybook/cli: 8.0.8

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant