Misk Components
This package provides shared, styled React components across Misk tab repos. The top of each component/container file contains a usage example.
Getting Started
$ yarn add @misk/components
Builders
createApp(routes)
: builder function to create an <App history={history}/>
componentcreateIndex(tabSlug, App, Ducks)
: builder function to create bootstrapping objects necessary for index.tsx
Components
ErrorCalloutComponent
: Processes a Redux / Axios error and dumps raw JSON for debuggingOfflineComponent
: NonIdealState component for Offline or Loading tab statePathDebugComponent
: outputs values passed in by props for hash
, pathname
, and search
in React-Router instanceSidebarComponent
: dashboard styled sidebarNavbarComponent
: dashboard styled Navbar
Containers
DesktopWideOnlyContainer
: Only shows container when window width >1200pxFlexContainer
: Container using CSS FlexBox to have enclosed items flow responsively to screen widthMobileNeverContainer
: Never show container when window width <768pxMobileOnlyContainer
: Only show container when window width <768pxResponsiveContainer
: Responsive container that all tabs and Nav Navbar use to ensure consistent view width