Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
The tenjin-ui-kit
provides a <Layout />
component that wraps the content of your app into a pre-defined
layout.
The <Layout />
component further exposes the following components:
<TopBar />
- which renders the Top Navigation Bar<Main />
- which renders the main content of the application<Sidebar />
- which renders the sidebar<PageContent />
- which renders the actual content of the page.Below is how the <Layout />
component is used to create a typical Site Administration Layout
In the above code, notice the use of the Main
, Sidebar
and PageContent
components.
The Topbar takes three props: the loggedInUser
, breadcrumbData
and actions
This prop is used to display the user profile avatar on the top bar. It takes the following format
This prop specifies the breadcrumbs that must be displayed. It takes the following format
This prop describes the buttons that must be present in the Top Bar
The sidebar can be of two varieties. Grouped Menu and Flat Menu. The Grouped menu is useful for large menu items that are grouped, while the Flat Menu is good for a smaller list of menus with Icons.
The sidebar can be made to expand /collapse by setting the allowCollapse
prop to true
The sidebar can be made to display a grouped menu as follows:
This is great for collapsible sidebar with icons