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.
| Prop | Type | Default |
|---|---|---|
variant | "dark" | "light" | "dark" |
CSS variables
| Variable | Purpose |
|---|---|
--ore-container-unit | Base size unit |
--ore-container-dark-background | Dark variant background color |
--ore-container-light-background | Light variant background color |
--ore-container-highlight | Top and side highlight color |
--ore-container-shadow | Bottom shadow color |
--ore-container-divider | Divider color between sections |
--ore-container-foreground | Content text color |
--ore-container-padding | Space between the surface edge and its content |
--ore-container-gap | Space between direct children |