No Preview

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 component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

AppBoundary

The AppBoundary component is designed to wrap your entire app. Your app will be clamped at the boundarySize and stay centered on the screen. By default, it will clamp the width at the sizeXxl option, but can also be set to other the valid size options using the boundarySize prop.

@deprecated this component is deprecated and will be removed in the next major version

Installation and Import

First, you must install @bedrock-layout/css.

yarn add @bedrock-layout/css

Then, you can import the entire CSS or just the component's CSS in your project:

import "@bedrock-layout/css/lib/bedrock-layout.min.css";

Optionally, you can install the package for your framework of choice (React.js, Solid.js) using your favorite package manager CLI:

yarn add @bedrock-layout/appboundary ## or yarn add @bedrock-layout/primitives

Then import the component in your project:

import { AppBoundary } from @bedrock-layout/appboundary // or import { AppBoundary } from '@bedrock-layout/primitives'

API

NameDescriptionDefaultControl
boundarySize
string
-
as
unknown
"div"

Boundary Size

The boundarySize prop defines the boundary size of the content.

Usage examples

// React.js and Solid.js <AppBoundary boundarySize="xxLarge"> <App /> </AppBoundary>

Here are the possible values for boundarySize by default:

Default (xxlarge size)
Custom boundary size as a number (320)
Custom boundary size as a string (60ch)
sizeXxs
sizeXs
sizeSm
sizeMd
sizeLg
sizeXl
sizeXxl
sizeContent1
sizeContent2
sizeContent3
sizeHeader1
sizeHeader2
sizeHeader3