tanstack-shadcn-table
Version:
A powerful, feature-rich React table component built on top of TanStack Table v8 with shadcn/ui styling. Optimized bundle size with 55% reduction through peer dependencies.
2 lines (1 loc) • 701 B
JavaScript
import{jsx as e}from"react/jsx-runtime";import*as r from"react";import*as s from"@radix-ui/react-checkbox";import{Check as a}from"lucide-react";import{c as i}from"./utils-49e5594d.js";const t=r.forwardRef(({className:r,...t},o)=>e(s.Root,{ref:o,className:i("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),...t,children:e(s.Indicator,{className:i("flex items-center justify-center text-current"),children:e(a,{className:"h-4 w-4"})})}));t.displayName=s.Root.displayName;export{t as C};