Image

An image is a graphic representation of something.
Example
Theme
Auto
Auto
Light
Dark
Scale
Medium
Large
Medium
Small
A placeholder image
<div class="ts-image">
    <img src="image.png" width="150">
</div>
Introduction

An image takes up the full width of its container. Specify the width and height in the <img> element to adjust its size.

States
Disabled

A disabled image is not interactive and cannot be used.

A placeholder image
<div class="ts-image is-disabled">
    <img src="image.png" width="150">
</div>
Variations
Rounded

A rounded image has slightly rounded corners.

A placeholder image
<div class="ts-image is-rounded">
    <img src="image.png" width="150">
</div>
Circular

An image can be displayed in a circular shape, only works with square images.

A placeholder image
<div class="ts-image is-circular">
    <img src="image.png" width="150">
</div>
Bordered

An image can have a border, usually used with white images to show the boundary.

A placeholder image
<div class="ts-image is-bordered">
    <img src="image.png" width="150">
</div>
Centered

An image can be centered horizontally.

A placeholder image
<div class="ts-image is-centered">
    <img src="image.png" width="150">
</div>
Covered

A covered image will not be distorted regardless of its aspect ratio.

A placeholder image
<div class="ts-image is-covered">
    <img src="image.png" width="100" height="100">
</div>

An image can be displayed in a 1:1, 4:3, or 16:9 aspect ratio, with the overflow cropped.

A placeholder image
A placeholder image
A placeholder image
<div class="ts-image is-1-by-1">
    <img src="image.png" width="200">
</div>
<div class="ts-image is-4-by-3">
    <img src="image.png" width="200">
</div>
<div class="ts-image is-16-by-9">
    <img src="image.png" width="200">
</div>
Spaced

An image can be spaced before or after.

Compared to calling ourselves a "tech company",
A placeholder image
our operation model is more like a "school." While Caris Events provides internet services,
A placeholder image
we focus on ensuring that people can learn and gain valuable experiences during development.
A placeholder image
We place great importance on whether a product can change lives by helping people achieve their goals.
Compared to calling ourselves a "tech company",
<div class="ts-image is-start-spaced">
    <img src="image.png" width="35">
</div>
our operation model is more like a "school." While Caris Events provides internet services,
<div class="ts-image is-end-spaced">
    <img src="image.png" width="35">
</div>
we focus on ensuring that people can learn and gain valuable experiences during development.
<div class="ts-image is-spaced">
    <img src="image.png" width="35">
</div>
We place great importance on whether a product can change lives by helping people achieve their goals.
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