Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
ChartArea ChartBar ChartLine ChartPie ChartRadial ChartRadar ChartBar ListTrackerRecharts ChartsDeprecated
Async ImageAvatarCarouselPreskok Icon
Charts

Area Chart

Area chart for trends over time, with gradient fills, stacking, and a left-to-right reveal on mount.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/area-chart

Usage

import { AreaChart } from "@/components/ui/preskok-ui/area-chart"

const data = [
  { month: "January", desktop: 186, mobile: 80 },
  { month: "February", desktop: 305, mobile: 200 },
  { month: "March", desktop: 237, mobile: 120 },
]

const config = {
  desktop: { label: "Desktop", color: "var(--chart-1)" },
  mobile: { label: "Mobile", color: "var(--chart-2)" },
} as const

export function AreaChartDemo() {
  return (
    <AreaChart
      config={config}
      data={data}
      dataKey="month"
      fillType="gradient"
      lineType="monotone"
    />
  )
}

Features

  • Types: default, stacked, and percent
  • Fills: gradient, solid, or none, with the line drawn along the top edge only
  • Curves through lineType (linear, monotone, natural, step, and more)
  • Gaps for missing values, or bridged with connectNulls

Chart

Chart foundations built on TanStack Charts, shared by every Preskok chart component.

Bar Chart

Bar chart with rounded bars, stacking, percentage mode, and an interactive legend.

On this page

Installation
Usage
Features
Qualified pipeline last 7d
Daily opportunity value grouped by segment.
Day 1Day 2Day 3Day 4Day 5Day 6Day 7$0k$50k$100k$150k$200k