# @tailus/themer-progress

> Progress themes

Latest version **0.0.1** (published 2023-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tailus/themer-progress
pnpm add @tailus/themer-progress
yarn add @tailus/themer-progress
bun add @tailus/themer-progress
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-10-08 |
| First published | 2023-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tailus.io |
| Maintainers | meschacirung |

## Links

- npm: https://www.npmjs.com/package/@tailus/themer-progress
- Issues: https://github.com/tailus-ui/themer/issues
- npm.io page: https://npm.io/package/@tailus/themer-progress

## Recent versions

- 0.0.1 (latest) — 2023-10-08

## README

# Progress Theme

## Overview

The progress component theme is a collection of Tailwindcss utilities that can be used to create progress components with a single variant. Progress components are used to indicate the progress of a task or operation.

## Installation

To install the progress component theme, run the following command:

```bash
npm install @tailus/themer-progress
```

## Importation

To import the progress component theme, you can use the following import:

```bash
import { progress } from "@tailus/themer-progress";
```

## Properties

The progress object contains the following properties:

-   `root`: The Tailwindcss utilities for the root element of the progress component.
-   `header`: The Tailwindcss utilities for the header of the progress component.
-   `indicator`: The Tailwindcss utilities for the indicator of the progress component. The indicator can have one of the following colors: `primary`, `secondary`, `accent`, `danger`, `warning`, `success`, `gray`, `gradient` or `neutral`.
-   `label`: The Tailwindcss utilities for the label of the progress component.
-   `message`: The Tailwindcss utilities for the message of the progress component.
-   `timer`: The Tailwindcss utilities for the timer of the progress component.

## Usage

To use the progress component theme, simply add the appropriate `progress` object properties to the progress element and its child elements.

### Example

#### Radix UI

```tsx
import React from "react";
import * as Progress from "@radix-ui/react-progress";
import { progress as theme } from "@tailus/themer-progress";

const ProgressUI = () => {
    const [progress, setProgress] = React.useState(0);

    React.useEffect(() => {
        const timer = setTimeout(() => setProgress(32), 500);
        return () => clearTimeout(timer);
    }, []);

    return (
        <Progress.Root
            className={theme.root + " w-64"}
            style={{
                // Fix overflow clipping in Safari
                // https://gist.github.com/domske/b66047671c780a238b51c51ffde8d3a0
                transform: "translateZ(0)",
            }}
            value={progress}
        >
            <Progress.Indicator
                className={theme.indicator.primary}
                style={{ transform: `translateX(-${100 - progress}%)` }}
            />
        </Progress.Root>
    );
};

export default ProgressUI;
```

---
_Source: https://npm.io/package/@tailus/themer-progress · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
