구성 요소
스택
일정한 간격으로 자식 요소를 행이나 열에 배치합니다.
사용법
기본
One
Two
Three
HTML
<bs:bsui-stack direction="row" gap="3" align="center" justify="center">
<bs:bsui-badge label="One" />
<bs:bsui-badge label="Two" />
<bs:bsui-badge label="Three" />
</bs:bsui-stack>전체 너비 열
늘어난 자식 요소가 행을 채우므로 쌓인 버튼의 너비가 서로 같아집니다.
HTML
<bs:bsui-stack direction="column" gap="3" align="stretch">
<bs:bsui-button label="Start the free trial" />
<bs:bsui-button label="Talk to sales" variant="outline" />
</bs:bsui-stack>분할된 행
양쪽 정렬로 동작 버튼을 행의 끝으로 보냅니다.
3 of 25 sites in use
HTML
<bs:bsui-stack direction="row" gap="3" align="center" justify="space-between">
<bs:bsui-text content="3 of 25 sites in use" variant="muted" />
<bs:bsui-button label="Add site" variant="outline" size="sm" />
</bs:bsui-stack>가운데 정렬된 빈 상태
열의 교차축을 가운데 정렬합니다. 열은 기본적으로 이렇게 정렬되지 않습니다.
No deployments yet
Push to the main branch and the first build starts on its own.
HTML
<bs:bsui-stack direction="column" gap="4" align="center">
<bs:bsui-text content="No deployments yet" variant="title" tag="h3" />
<bs:bsui-text content="Push to the main branch and the first build starts on its own." variant="muted" />
<bs:bsui-button label="Read the guide" variant="outline" />
</bs:bsui-stack>속성
| 속성 | 유형 | 기본값 |
|---|---|---|
direction | row | |
gap | 2 | |
align | — | |
justify | — | |
wrap | toggle | false |
grow | toggle | false |