Box

A box displays content surrounded by a border.
Example
Theme
Auto
Auto
Light
Dark
Scale
Medium
Large
Medium
Small
A placeholder image
A delicious cake!

Order online and get an eco-friendly bag as a bonus.

<div class="ts-box">
    <div class="ts-image">
        <img src="image.png">
    </div>
    <div class="ts-content">
        <div class="ts-header is-heavy">A delicious cake!</div>
        <p>Order online and get an eco-friendly bag as a bonus.</p>
    </div>
</div>
Introduction

Content, Table, Image are usually used with a box.

Structure
Symbol

A box can have a symbol to represent its content.

All published or planned products
must not intentionally bias public opinion,
They must remain neutral.
<div class="ts-box">
    <div class="ts-content">
        All published or planned products<br>
        must not intentionally bias public opinion,<br>
        They must remain neutral.
    </div>
    <div class="symbol">
        <span class="ts-icon is-circle-exclamation-icon"></span>
    </div>
</div>
Variations
Horizontal

A box can arrange its content horizontally.

A placeholder image
Zedd - Papercut (Audio) ft. Troye Sivan

Get "True Colors" on iTunes: http://smarturl.it/ZeddTrueColors

<div class="ts-box is-horizontal">
    <div class="ts-image is-covered">
        <img src="image.png" width="90" height="100%">
    </div>
    <div class="ts-content">
        <div class="ts-header">
            Zedd - Papercut (Audio) ft. Troye Sivan
        </div>
        <p>Get "True Colors" on iTunes: http://smarturl.it/ZeddTrueColors</p>
    </div>
</div>
Collapsed

A box can have its width to fit its content.

<div class="ts-box is-collapsed">
    <div class="ts-content">
        <p>A Taiwanese social network without "seen" indicators.</p>
    </div>
</div>
Indicated

A box can be indicated with a border color.

Top indicated
Bottom indicated
Start indicated
End indicated
<div class="ts-box is-top-indicated">
    <div class="ts-content">Top indicated</div>
</div>
<div class="ts-box is-bottom-indicated">
    <div class="ts-content">Bottom indicated</div>
</div>
<div class="ts-box is-start-indicated">
    <div class="ts-content">Start indicated</div>
</div>
<div class="ts-box is-end-indicated">
    <div class="ts-content">End indicated</div>
</div>
Emphasises

A box can be emphasized by changing its indicator color.

Negative
Positive
Warning
<div class="ts-box is-negative is-top-indicated">
    <div class="ts-content">Negative</div>
</div>
<div class="ts-box is-positive is-top-indicated">
    <div class="ts-content">Positive</div>
</div>
<div class="ts-box is-warning is-top-indicated">
    <div class="ts-content">Warning</div>
</div>
Raised

A box may be formatted to raise above the page.

Raised
<div class="ts-box is-raised">
    <div class="ts-content">Raised</div>
</div>
Sharp

A box can have a sharp corner without border radius.

Sharp box
<div class="ts-box is-sharp">
    <div class="ts-content">Sharp box</div>
</div>
Dashed

A box can have a dashed border, typically for a placeholder or dropzone.

Upload Photos
Drag and drop files here to upload.
<div class="ts-box is-hollowed">
    <div class="ts-blankslate is-interactive">
        <div class="header">Upload Photos</div>
        <div class="description">Drag and drop files here to upload.</div>
    </div>
</div>
Compositions
Statistics

Create a system dashboard using Grid and boxes with symbols.

42,689
32
Monthly Visitors
8,652
351
Total Users
<div class="ts-grid is-2-columns">
    <div class="column">
        <div class="ts-box">
            <div class="ts-content">
                <div class="ts-statistic">
                    <div class="value">42,689</div>
                    <div class="comparison is-increased">32</div>
                </div>
                Monthly Visitors
            </div>
            <div class="symbol">
                <span class="ts-icon is-eye-icon"></span>
            </div>
        </div>
    </div>
    <div class="column">
        <div class="ts-box">
            <div class="ts-content">
                <div class="ts-statistic">
                    <div class="value">8,652</div>
                    <div class="comparison is-increased">351</div>
                </div>
                Total Users
            </div>
            <div class="symbol">
                <span class="ts-icon is-users-icon"></span>
            </div>
        </div>
    </div>
</div>
Alert

Warn a user with a negative indicated box.

Insufficient Balance

Your wallet balance is insufficient to cover the server rental fee, the data will be temporarily inaccessible.

<div class="ts-box is-negative is-start-indicated">
    <div class="ts-content">
        <div class="ts-header is-negative">Insufficient Balance</div>
        <p>Your wallet balance is insufficient to cover the server rental fee, the data will be temporarily inaccessible.</p>
    </div>
</div>

Place an image, text, and header in a box to create a link preview like on Facebook and Twitter.

A placeholder image
yami.io/rog-and-hololive/
Asus calls itself a "Chinese company," and block the Japan Asus-Hololive partnership.
The ROG Weibo account posted that they would do everything possible to stop the collaboration.
<div class="ts-box" style="max-width: 360px">
    <div class="ts-image">
        <img src="image.png">
    </div>
    <div class="ts-content is-secondary">
        <div class="ts-text is-description">yami.io/rog-and-hololive/</div>
        <div class="ts-header is-truncated is-heavy">Asus calls itself a "Chinese company," and block the Japan Asus-Hololive partnership.</div>
        <div class="ts-text is-2-lines is-description">The ROG Weibo account posted that they would do everything possible to stop the collaboration.</div>
    </div>
</div>
Looking for similar components?
Designed by Yami Odymel from Taiwan, along with the ❤️ from contributors. The source code is licensed under MIT, and the documentation is under CC 0 public domain. Feel free to use, share, or contribute. Tocas UI is a design system for Caris Events, part of Sorae & Co., Ltd.
Translators: Yami Odymel
Trademark of the owner of Tocas UI