Bedform UILayout

Container

Group content inside a container.

Container

World settingsChoose how players join your world.
*
string
*
string
*

Usage

import { Container } from "@bedform/ui/container";

export function WorldSettings() {
  return (
    <Container variant="dark">
      <h2>World settings</h2>
      <p>Choose how players join your world.</p>
    </Container>
  );
}

Variants

<Container variant="dark">Dark surface</Container>
<Container variant="light">Light surface</Container>

API

Container renders a div, accepts every div attribute, and forwards its ref to the div.

PropTypeDefault
variant"dark" | "light""dark"

CSS variables

VariablePurpose
--ore-container-unitBase size unit
--ore-container-dark-backgroundDark variant background color
--ore-container-light-backgroundLight variant background color
--ore-container-highlightTop and side highlight color
--ore-container-shadowBottom shadow color
--ore-container-dividerDivider color between sections
--ore-container-foregroundContent text color
--ore-container-paddingSpace between the surface edge and its content
--ore-container-gapSpace between direct children

On this page