Skip to content
Get Started

Build your first screen with ShardUI for Blazor

Start with the installation guide, bring the shared utilities into your app, and then compose the components you need. The goal is a fast path from setup to a working, customizable screen.

Step 1
Set up the project

Install the package, configure Tailwind, and follow the application wiring guide.

Go to installation
Step 2
Pick a few primitives

Start small with foundational pieces like buttons, inputs, cards, dialogs, and layout helpers.

Explore components
Step 3
Compose your screen

Use Tailwind utilities directly, reach for cva for variants, and merge classes safely.

See a component example
Recommended Path
A quick sequence that matches how this project is organized.

1. Follow installation

Install ShardUI.Components and configure the styles for your app.

2. Open the docs examples

Compare the docs samples with your app and copy the pieces you need.

3. Customize the variants

Keep the components small and adapt the Tailwind classes to your design system.

Learn class composition

Make your first interaction

After installation, add a button to an interactive Blazor page. Handle its click in C#, then compose it with inputs, cards, or a dialog.

Explore button variants and sizes →
Preview your first interaction
This example runs locally in your browser.

Clicks: 0.

What to expect
The workflow is designed around ownership and direct customization.

You are working with reusable Blazor components, not a black-box dependency.

Most styling should stay in the markup through Tailwind utility classes.

Variant-heavy components should lean on cva, with clsx and tailwind-merge handling composition.

Next Stops
Useful pages once the project is wired up.
An unhandled error has occurred. Reload 🗙

    Rejoining the server...

    Rejoin failed... trying again in seconds.

    Failed to rejoin.
    Please retry or reload the page.

    The session has been paused by the server.

    Failed to resume the session.
    Please reload the page.