Container
<ts-container> vv0.4.0
The ts-container component.
Open in Storybook for interactive demos.
Preview
Section titled “Preview”<ts-container size="lg">Content</ts-container>Properties
Section titled “Properties”| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
padding | padding | boolean | true | Whether to apply horizontal padding. |
size | size | "full" | "lg" | "md" | "sm" | "xl" | 'lg' | The maximum width of the container. |
| Name | Description |
|---|---|
*(default)* | Default slot for container content. |
CSS Parts
Section titled “CSS Parts”Use ::part() to style internal elements:
| Part | Description |
|---|---|
base | The container element. |
ts-container::part(base) { /* your custom styles */}<ts-container size="lg">Content</ts-container>import { TsContainer } from '@tessera-ui/react';
<TsContainer padding size="lg">Content</TsContainer>