JSPM

@tremor/react

3.18.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 284129
  • Score
    100M100P100Q170980F
  • License Apache 2.0

The React library to build dashboards faster.

Package Exports

  • @tremor/react
  • @tremor/react/dist/components/chart-elements/common/ChartLegend
  • @tremor/react/dist/components/chart-elements/common/ChartLegend.js
  • @tremor/react/dist/components/chart-elements/common/ChartTooltip
  • @tremor/react/dist/components/chart-elements/common/ChartTooltip.js
  • @tremor/react/dist/components/chart-elements/common/utils
  • @tremor/react/dist/components/chart-elements/common/utils.js
  • @tremor/react/dist/components/input-elements/selectUtils
  • @tremor/react/dist/components/input-elements/selectUtils.js
  • @tremor/react/dist/index.cjs
  • @tremor/react/dist/index.js
  • @tremor/react/dist/lib/constants
  • @tremor/react/dist/lib/constants.js
  • @tremor/react/dist/lib/theme
  • @tremor/react/dist/lib/theme.js
  • @tremor/react/dist/lib/tremorTwMerge
  • @tremor/react/dist/lib/tremorTwMerge.js
  • @tremor/react/dist/lib/utils
  • @tremor/react/dist/lib/utils.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tremor/react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme



Tremor Logo



DocumentationWebsite


React components to build charts and dashboards

Tremor NPM 20+ open-source components built on top of Tailwind CSS to make visualizing data simple again. Fully open-source, made by data scientists and software engineers with a sweet spot for design.


Tremor Banner


Getting Started

See our Installation Guide. To make use of the library we also need Tailwind CSS setup in the project.

Example

With Tremor creating an analytical interface is easy.

"use client";
import { AreaChart, Card } from "@tremor/react";

const chartdata = [
  {
    date: "Jan 23",
    "Route Requests": 289,
    "Station Requests": 233,
  },
  // ...
  {
    date: "Oct 23",
    "Route Requests": 283,
    "Station Requests": 247,
  },
];

export default function Example() {
  return (
    <Card className="max-w-4xl">
      <span className="text-tremor-default text-tremor-content dark:text-dark-tremor-content">
        Total Requests
      </span>
      <p className="text-tremor-metric font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong">
        6,568
      </p>
      <AreaChart
        className="mt-2 h-80"
        data={chartdata}
        index="date"
        categories={["Route Requests", "Station Requests"]}
        colors={["indigo", "rose"]}
        yAxisWidth={33}
      />
    </Card>
  );
}

Tremor Example

Community and Contribution

We are always looking for new ideas or other ways to improve Tremor NPM. If you have developed anything cool or found a bug, send us a pull request. Check out our Contributor License Agreement here.

License

Apache License 2.0

Copyright © 2024 Tremor Labs, Inc. All rights reserved.