Getting Started

The Tuix design system as framework-agnostic web components.

What is tuix-webcomponents?

tuix-webcomponents is the Tuix design system packaged as custom elements. Every component is a Lit element with its own shadow DOM, so the styles cannot leak in or out and the same tag works in React, Angular, Vue, plain HTML or a server-rendered page.

Fourteen elements ship today: typography, icons, buttons, links, surfaces, form controls, a data table, a toast and a modal. All of them share one colour palette and a light and a dark theme.

<tuix-text size="xl" color="primary">Hello</tuix-text>
<tuix-button variant="primary" iconleft="check">Save</tuix-button>

Install

Add them to an application

Then

Live examples

The examples on the component pages are live: the elements below are the real ones, running in this page.

Loading the components…

For a playground with editable controls for every property, the library's Storybook is deployed alongside this documentation at /storybook.

This documentation describes the public API. When an example and Storybook disagree, the source in src/ is the truth; corrections to the documentation are welcome as a pull request.

On this page