Components

Layout

<Layout />

Constructor

# <Layout />

Layout component is a wrapper and provider of story, config and theme context. Therefore, most library components that consome context need to be wrapped with layout

<Layout story={textStory} config={config}>
 <Navbar />
 <div>
   <TopAd />
   <Spacer token="s" />
   <HeaderCard />
 </div>
</Layout>
Parameters:
Name Type Description
params Object

object containing parameters passed to the render prop

story Story

story object

config Config

config object

children Object

child components

View Source atoms/layout/layout.tsx, line 36