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

Bar Chart

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

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/bar-chart

Usage

import { BarChart } from "@/components/ui/preskok-ui/bar-chart"

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

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

export function BarChartDemo() {
  return <BarChart config={config} data={data} dataKey="month" />
}

Features

  • Types: default, stacked, and percent
  • Rounded bar ends through barProps.radius
  • Focus fade on hover and keyboard focus, respecting reduced motion
  • Legend selection that highlights one series

Area Chart

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

Line Chart

Line chart for comparing trends across several series.

On this page

Installation
Usage
Features
Support workload
Last 6 days
Day 1Day 2Day 3Day 4Day 5Day 60 tickets50 tickets100 tickets150 tickets
Workload up 9.4% this week
Open tickets across API and billing queues