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

Fix Properties / ArgsTable in Docs views not displaying array item definition #84

Open
julrich opened this issue Jan 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@julrich
Copy link
Member

julrich commented Jan 8, 2024

This works in Controls, but not in Docs. Example:
https://github.com/kickstartDS/ds-agency/blob/main/src/components/logos/Logos.mdx#L13C13-L13C13

We should possibly be able to do something like this

<ArgTypes of={{...LogoStories, ...getArgsShared(LogoStories.parameters.jsonSchema, 'docs')}}/>

'docs' here would be a new parameter to getArgsShared, toggling a slightly different way of returning the info... suited to be displayed as a single array item definition inside Docs.

Could probably also provide those exports from existing *.stories.tsx files for conenience, and to keep the MDX files slim.

@julrich julrich added the enhancement New feature or request label Jan 8, 2024
@fleven-kds fleven-kds transferred this issue from kickstartDS/ds-agency Nov 27, 2024
@julrich julrich transferred this issue from kickstartDS/ds-agency-premium Dec 5, 2024
@julrich julrich moved this to Backlog in CMS Starter Storyblok Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant