Using Components

Using Components

Documentation layout

Every component page follows the same structure:

  1. Live example — rendered with the same API you use in apps
  2. Code tabs — template / script / style snippets you can copy
  3. API table — props, events, slots, and exposed methods

Basic usage pattern

Copied
<template>
  <s-button color="primary" type="flat">Save</s-button>
</template>

Import styles once in your entry file (see Getting Started).

Configure with props

Most visual changes are prop-driven — no extra CSS required:

Copied
<s-alert color="success" closable v-model="open">
  Saved successfully.
</s-alert>

Open the component doc, find the prop in the API section, and use the linked example anchor (e.g. #color).

Preview in Playground

Before integrating a component into your app, open the Playground and select its demo. The preview uses the same component APIs shown in the documentation.

Design note

Visual language is inherited from Vuesax. Sax Design Vue keeps that expressive look while providing APIs and tooling for Vue 3 applications.

Last Updated: 2026-10-28, 06:17:56 UTC
Copied