Storybook: What is the actual requirement for a folder to appear as folder?

Created on 4 Oct 2019  路  2Comments  路  Source: storybookjs/storybook

We tried to approximate it, but nothing really turned out to be true.

Screenshot 2019-10-04 at 08 48 18

Is it the amount of stories inside the folder? Is it the amount of files that are being displayed within a folder? Or is it maybe the depth of the folder that makes it appear as a folder?

This is just out of curiosity, we plan to handle our stories differently and then that folder "problem" should vanish anyways.

Explanation: Button and Input Text are labeled as folders instead of components (see the icon).

question / support ui

Most helpful comment

AFAIK "groups" that contain only stories are shown as components and groups that contain anything else are shown as folders.

I think we could change this behavior if there was an alternative proposal that made sense.

All 2 comments

AFAIK "groups" that contain only stories are shown as components and groups that contain anything else are shown as folders.

I think we could change this behavior if there was an alternative proposal that made sense.

Thanks @shilman , issue can be closed if you want.

Was this page helpful?
0 / 5 - 0 ratings