Ability to hide Canvas Tab
See original GitHub issueIs your feature request related to a problem? Please describe. I’m always frustrated that Canvas is the main tab. My team use Storybook as a component library but also as a styleguide. We put the styleguide text as Markdown with Notes.
Describe the solution you’d like I would be able to hide the Canvas tab. So the user doesn’t need an extra click to read the Notes.
Maybe something like this?
storiesOf('Addons|Hide Canvas options', module)
.addParameters({
options: {
panelPosition: 'bottom',
// To hide canvas tab:
showCanvas: false,
},
})
.add(
'Story for MyComponent',
() => <MyComponent />,
// If you want to set the options for a specific story
{ options: { showCanvas: false } },
);
Describe alternatives you’ve considered An alternative would be that you can config each story which tab should be opened upon clicking the specific story.
Are you able to assist bring the feature to reality? I can contribute by reading pull-requests and test.
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Reactions:50
- Comments:29 (14 by maintainers)
Top Results From Across the Web
Disable canvas per story in storybook 6
To hide the "Canvas" tab: export default { title: 'YourTitle', parameters: { previewTabs: { canvas: { hidden: true}, }, viewMode: 'docs', } ...
Read more >Hide tabs in the course settings (navigation and Integration tabs)
Solved: Hi all, We would like to hide the "Navigation" and "Integration" tabs on the course setting page, from teachers. Anyone.
Read more >Tab control hide and show on canvas app
Tab control hide and show on canvas app ... "In-call effectiveness" & "Selling" have to be shown on the UI and has to...
Read more >How to hide tab canvas
Hi, To hide the entire canvas, you can use HIDE_VIEW built-in. HIDE_VIEW( ...
Read more >How to hide items on Canvas navigation bar - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No I want this!
On Thu, Oct 24, 2019, 3:44 AM stale[bot] notifications@github.com wrote:
@eduina @B3Kay FYI You can currently hide all of the non-docs tabs with the
--docs
flags, e.g.yarn storybook --docs
oryarn build-storybook --docs