carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.8k stars 1.8k forks source link

[CodeSnippet] Add inline and multi-line variants under playground #16783

Open Kritvi-bhatia17 opened 3 months ago

Kritvi-bhatia17 commented 3 months ago

The problem

Currently, only the single-line variant is available under Playground for code snippet, restricting access to inline and multiline variants. As a result, only the single-line disabled state is accessible.

The solution

To resolve this limitation, introduce a dropdown option in Storybook under Code snippet's playground. This dropdown will allow switching between different code snippets' variants (inline, single-line and multi-line variants), providing access to all functionalities.

Examples

No response

Application/PAL

No response

Business priority

Low Priority = release date is not dependent on fix or not upcoming

Available extra resources

No response

Code of Conduct

github-actions[bot] commented 3 months ago

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

tay1orjones commented 3 months ago

Related https://github.com/carbon-design-system/carbon/issues/16816

For this one we can add controls to the existing variant stories instead of trying to make a playground story for each variant.