npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mdxui/tremor

v7.0.0

Published

Tremor template wrappers implementing the mdxui interface - analytics dashboards, landing pages, and marketing sites

Readme

@mdxui/tremor

Tremor template wrappers implementing the mdxui interface. This package provides adapters that wrap Tremor template components to conform to the SiteComponents and AppComponents interfaces defined by mdxui.

What's Included

This package exports five template modules, each implementing specific use cases:

Dashboard Template (@mdxui/tremor/dashboard)

A general-purpose SaaS dashboard implementing the AppComponents interface. Features flexible shell layouts with sidebar navigation, workspace switchers, and settings pages.

Use for: Admin dashboards, internal tools, SaaS applications

Key Components:

  • Shell - Main layout container
  • ShellSidebarLeft - Left sidebar navigation variant
  • ShellTopNav - Top navigation variant
  • Sidebar - Navigation sidebar with workspace/user management
  • Settings - Settings page layout
  • AppComponents - Pre-configured interface object
import { AppComponents, Shell, Sidebar } from '@mdxui/tremor/dashboard'

// Use AppComponents interface with MDX
<MDXProvider components={AppComponents}>
  <App>
    <Shell>
      <Dashboard title="Analytics">
        {content}
      </Dashboard>
    </Shell>
  </App>
</MDXProvider>

Insights Template (@mdxui/tremor/insights)

Analytics dashboard with charts, KPIs, and data tables. Optimized for displaying metrics, trends, and transaction data.

Use for: Analytics dashboards, reporting, business intelligence

Key Components:

  • Shell - Analytics dashboard container
  • Sidebar - Navigation for analytics sections
  • KPICard - Metric/KPI display
  • AreaChart, BarChart, DonutChart, BarChartVariant, TransactionChart - Data visualization
  • TransactionsTable - Data table with sorting/filtering
  • components - Pre-configured interface object
import { components, Shell, Sidebar, KPICard } from '@mdxui/tremor/insights'

// Use with MDX
<MDXProvider components={components}>
  <Shell sidebar={<Sidebar items={navItems} />}>
    <KPICard title="Revenue" value="$25.5M" />
    <AreaChart data={chartData} />
    <TransactionsTable transactions={data} />
  </Shell>
</MDXProvider>

Overview Template (@mdxui/tremor/overview)

Multi-section dashboard for cross-functional views like Support, Retention, Workflow, and Agents. Implementing the AppComponents interface with specialized section components.

Use for: Multi-team dashboards, operational overview, support platforms

Key Components:

  • Shell - Top navigation shell layout
  • Sidebar - Secondary navigation
  • Header - Header bar
  • Dashboard - Dashboard page layout
  • Settings - Settings page
  • AgentsSection, RetentionSection, SupportSection, WorkflowSection - Specialized dashboard sections
  • AppComponents - Pre-configured interface object
import { AppComponents } from '@mdxui/tremor/overview'

// Use with mdxui
<MDXProvider components={AppComponents}>
  <App>
    <Shell>
      <Dashboard title="Support">
        <SupportSection tickets={data} />
      </Dashboard>
    </Shell>
  </App>
</MDXProvider>

Solar Template (@mdxui/tremor/solar)

Minimal landing page template implementing the SiteComponents interface. Focused on marketing sites and landing pages with hero sections, features, and CTA components.

Use for: Marketing sites, landing pages, product pages

Key Components:

  • Site - Root site wrapper
  • Header - Navigation header
  • Footer - Site footer
  • LandingPage - Landing page layout
  • Hero, HeroMinimal, HeroGradient - Hero section variants
  • Features - Features section
  • CTA - Call-to-action section
  • components - Pre-configured interface object
import { components, Site, Hero, Features } from '@mdxui/tremor/solar'

// Use with mdxui
<MDXProvider components={components}>
  <Site name="My Product">
    <Hero
      headline="Build faster"
      subheadline="Ship with confidence"
      cta={{ primary: 'Get Started', primaryAction: '/signup' }}
    />
    <Features features={featureList} />
  </Site>
</MDXProvider>

Database Template (@mdxui/tremor/database)

Marketing site template implementing the SiteComponents interface. Provides core layout components for content-heavy marketing sites.

Use for: Marketing sites, documentation, content sites, product homepages

Key Components:

  • Site - Root site wrapper
  • Header - Navigation header
  • Footer - Site footer
  • LandingPage - Landing page layout
  • Page - Generic page layout
  • components - Pre-configured interface object
import { components, Site, Page } from '@mdxui/tremor/database'

// Use with mdxui
<MDXProvider components={components}>
  <Site name="My Product">
    <Page title="About Us">
      {content}
    </Page>
  </Site>
</MDXProvider>

Installation

npm install @mdxui/tremor @mdxui/primitives @tremor/react

Usage

Basic Setup

Import the template you need and use it with MDX:

import { AppComponents } from '@mdxui/tremor/dashboard'
import { MDXProvider } from '@mdx-js/react'

export function App() {
  return (
    <MDXProvider components={AppComponents}>
      {/* Your content */}
    </MDXProvider>
  )
}

Per-Template Imports

Each template is exported as a separate entry point to avoid conflicts:

// App templates (AppComponents interface)
import { AppComponents as DashboardComponents } from '@mdxui/tremor/dashboard'
import { AppComponents as OverviewComponents } from '@mdxui/tremor/overview'

// Site templates (SiteComponents interface)
import { components as SolarComponents } from '@mdxui/tremor/solar'
import { components as DatabaseComponents } from '@mdxui/tremor/database'

// Analytics template
import { components as InsightsComponents } from '@mdxui/tremor/insights'

Shared Utilities

The shared export provides utilities available across all templates:

import { /* shared utilities */ } from '@mdxui/tremor/shared'

Component Variants

Many components offer multiple visual variants. Check individual component stories in the package for variant examples and usage patterns.

Testing

This package uses test-driven development (TDD) with:

  • Unit tests - Component behavior validation
  • Visual tests - Playwright snapshot testing
  • Type checking - TypeScript for prop validation

Run tests with:

pnpm --filter @mdxui/tremor test          # Unit tests
pnpm --filter @mdxui/tremor test:watch    # Watch mode
pnpm --filter @mdxui/tremor test:visual   # Visual tests

Architecture

All templates in this package:

  1. Wrap Tremor components - Use Tremor's pre-built template patterns as the foundation
  2. Implement mdxui interfaces - Conform to AppComponents (for dashboards) or SiteComponents (for sites)
  3. Provide type-safe props - Use TypeScript for IDE autocomplete and compile-time validation
  4. Support variant patterns - Offer multiple visual and behavioral configurations
  5. Maintain Tremor compatibility - Work seamlessly with Tremor's ecosystem and styling

Type Safety

The package provides full TypeScript support with exported prop types:

import type {
  ShellProps as DashboardShellProps,
  SidebarProps as DashboardSidebarProps,
  DashboardComponents
} from '@mdxui/tremor/dashboard'

Related Packages

License

MIT