Stack
Vertical flow with a token gap.
beta
Try it
<Stack gap="sm" />Examples
Deployment summary
Deployment ready
api-gateway v2.14.0 passed all checks on production.
<script lang="ts">
import Stack from '@tcpsystems/ui/foundation/Stack';
import Heading from '@tcpsystems/ui/foundation/Heading';
import Text from '@tcpsystems/ui/foundation/Text';
import Button from '@tcpsystems/ui/foundation/Button';
</script>
<Stack>
<Heading level={3}>Deployment ready</Heading>
<Text tone="muted">api-gateway v2.14.0 passed all checks on production.</Text>
<Button variant="primary">Promote to production</Button>
</Stack>Gap sizes
Build passed
Tests passed
Image pushed
Canary at 10%
Canary at 50%
Rolled out to 100%
<script lang="ts">
import Stack from '@tcpsystems/ui/foundation/Stack';
import Text from '@tcpsystems/ui/foundation/Text';
</script>
<Stack gap="xl">
<Stack gap="sm">
<Text>Build passed</Text>
<Text>Tests passed</Text>
<Text>Image pushed</Text>
</Stack>
<Stack gap="lg">
<Text>Canary at 10%</Text>
<Text>Canary at 50%</Text>
<Text>Rolled out to 100%</Text>
</Stack>
</Stack>As list
- Maria Chen approved invoice INV-1042
- Tomás Ruiz commented on invoice INV-1043
- Priya Nair paid invoice INV-1044
<script lang="ts">
import Stack from '@tcpsystems/ui/foundation/Stack';
</script>
<Stack as="ul" gap="sm">
<li>Maria Chen approved invoice INV-1042</li>
<li>Tomás Ruiz commented on invoice INV-1043</li>
<li>Priya Nair paid invoice INV-1044</li>
</Stack>API
import Stack from '@tcpsystems/ui/foundation/Stack';| Prop | Type | Default |
|---|---|---|
as? | string | 'div' |
gap? | string | none |
min? | string | none |
width? | string | none |
justify? | string | none |
children? | native | none |
| Hook | Kind |
|---|---|
.tcp-stack | Root class |
data-gap | Data attribute |
data-justify | Data attribute |
data-min | Data attribute |
data-width | Data attribute |