无样式
The Unstyled
block is a special block that disables Storybook's default styling in MDX docs wherever it is added.
By default, most elements (like h1
, p
, etc.) in docs have a few default styles applied to ensure the docs look good. However, sometimes you might want some of your content to not have these styles applied. In those cases, wrap the content with the Unstyled
block to remove the default styles.
产量
Due to how CSS inheritance works it’s best to always add the Unstyled block to the root of your MDX, and not nested into other elements. The following example will cause some Storybook styles like color
to be inherited into CustomComponent
because they are applied to the root div
无样式
Unstyled
is configured with the following props
children
类型: React.ReactNode
提供您不想应用默认文档样式的内容。