Container
A padded surface with a border, ring, and optional tone.
When to use
Use Container when you need a padded surface with a border, ring, and optional tone.
Import
TypeScript
import { Container } from '@gzodo/ui'Container is the framed panel used for cards and grouped content. It is a column with 8px padding and gap. fullWidth, fullHeight, fitWidth, and fitHeight change the box size. color mixes a theme tone into the border and background, the same tokens Tag uses.
Examples
3Project
Two fields, stacked with the default 8px gap.
Surface
Default fill is
--bg-container, with a base border and the shared ring shadow.fitWidth
fullWidth
Width
fitWidth shrinks to the content. fullWidth stretches to the parent.danger
success
warning
pending
muted
Tones
color accepts danger, success, warning, pending, and muted. The accent is mixed into the border and the background.Container
7Container
Property
Description
Type
Default
childrenContent stacked in a column.
ReactNode—
fullWidthSet the width to 100%.
boolean—
fullHeightSet the height to 100%.
boolean—
fitWidthShrink the width to the content.
boolean—
fitHeightShrink the height to the content.
boolean—
colorTone mixed into the border and background.
'danger' | 'success' | 'warning' | 'pending' | 'muted'—
classNameClass added on the root element.
string—