A reusable React component library for biller management and search, built with TypeScript, Vite, and Material UI.
npm install trieve-widgetsA reusable React component library for biller management and search, built with TypeScript, Vite, and Material UI.
- SearchBillersWidget: Easily embed a biller/merchant search UI in your React app.
- Theme: Consistent look and feel with a default MUI theme.
- Storybook: Preview and test widgets in isolation.
- TypeScript: Full type safety and type definitions.
- Vite: Fast development and optimized builds.
---
``sh`
npm install trieve-widgetsor
yarn add trieve-widgets
Import the widget and theme in your React app:
`tsx
import { ThemeProvider } from "@mui/material";
import { theme, SearchBillersWidget } from "trieve-widgets";
function App() {
return (
);
}
`
#### Customization
- onRecordClick: Optional callback when a record is clicked.sx
- : Pass MUI style overrides.
`tsx`
sx={{ my: 4 }}
/>
---
`sh`
npm run storybook
`sh`
npm run build
`sh`
npm run lint
---
``
widgets/
├── src/
│ ├── components/
│ │ └── SearchBiller/
│ │ ├── SearchBiller.tsx
│ │ └── index.ts
│ ├── theme/
│ │ └── defaultTheme/
│ │ └── defaultTheme.ts
│ ├── index.ts
│ └── stories/
│ └── ...
├── package.json
├── tsconfig.json
├── vite.config.ts
├── tsup.config.ts
└── ...
---
This package is built with Vite and bundled for npm using vite build and tsup. src/index.ts`.
Exports are defined in
---
MIT
---