customer-dashboard-make-kit
v0.1.0
Published
React dashboard and saved-views components for Figma Make prototypes based on the Customer Dashboard design.
Readme
Customer Dashboard Make Kit
customer-dashboard-make-kit is a small React package for Figma Make that packages the Customer Dashboard screen and the saved-views patterns we explored in Figma.
It is designed to be:
- React 18 compatible for Figma Make
- Vite-friendly with no Tailwind requirement
- Self-contained, with plain CSS tokens and components
- Useful as both a full dashboard starter and a library of reusable dashboard primitives
What it exports
CustomerDashboardRevenueTableSavedViewsInlineRailSavedViewsModalSavedViewsListItemSavedViewsPillButton,Badge,Card,CardHeader,CardTitle,CardDescription,CardContent,InputcustomerAccounts,defaultSavedViews,overflowSavedViewssegmentFilters,healthFiltersthemeTokens- Type exports for all dashboard and saved-view data
Install
npm install customer-dashboard-make-kitUsage
Import the package CSS once near the app root:
import "customer-dashboard-make-kit/styles.css";Then use the exported components:
import {
CustomerDashboard,
SavedViewsInlineRail,
SavedViewsModal,
customerAccounts,
defaultSavedViews,
} from "customer-dashboard-make-kit";
export function Example() {
return (
<>
<CustomerDashboard accounts={customerAccounts} />
<SavedViewsInlineRail items={defaultSavedViews} selectedId="renewals" />
<SavedViewsModal items={defaultSavedViews} />
</>
);
}Local build
npm run buildThis package is intended to be published either to the public npm registry or to your organization's private Figma npm registry for use in a Make kit.
