Skip to content
tcpsystemsui

Theme

Colour scheme
Accent
Density
Radius
Esc

Container

Page gutter and maximum width.

beta

Try it

Svelte
<Container width="prose" />

Examples

Page width

Billing overview

Invoices, payment methods and usage for your workspace.

Page width.svelte
<script lang="ts">
	import Container from '@tcpsystems/ui/foundation/Container';
	import Heading from '@tcpsystems/ui/foundation/Heading';
	import Text from '@tcpsystems/ui/foundation/Text';
</script>

<Container>
	<Heading level={3}>Billing overview</Heading>
	<Text tone="muted">Invoices, payment methods and usage for your workspace.</Text>
</Container>

Prose width

Release 2.14 moves deployments to rolling updates. Each service restarts one instance at a time, so traffic keeps flowing while new versions come up.

Prose width.svelte
<script lang="ts">
	import Container from '@tcpsystems/ui/foundation/Container';
	import Text from '@tcpsystems/ui/foundation/Text';
</script>

<Container width="prose">
	<Text>Release 2.14 moves deployments to rolling updates. Each service restarts one instance at a time, so traffic keeps flowing while new versions come up.</Text>
</Container>

Form width

Add a team member to your workspace.

Form width.svelte
<script lang="ts">
	import Container from '@tcpsystems/ui/foundation/Container';
	import Stack from '@tcpsystems/ui/foundation/Stack';
	import Text from '@tcpsystems/ui/foundation/Text';
	import Button from '@tcpsystems/ui/foundation/Button';
</script>

<Container width="form">
	<Stack>
		<Text>Add a team member to your workspace.</Text>
		<Button variant="primary">Send invite</Button>
	</Stack>
</Container>

API

Import
import Container from '@tcpsystems/ui/foundation/Container';
PropTypeDefault
as?string'div'
gap?stringnone
min?stringnone
width?stringnone
justify?stringnone
children?nativenone
HookKind
.tcp-containerRoot class
data-gapData attribute
data-justifyData attribute
data-minData attribute
data-widthData attribute