New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

trieve-widgets

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trieve-widgets

A reusable React component library for biller management and search, built with TypeScript, Vite, and Material UI.

latest
npmnpm
Version
0.57.0
Version published
Maintainers
1
Created
Source

Trieve Widgets

A reusable React component library for biller management and search, built with TypeScript, Vite, and Material UI.

Features

  • 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.

Getting Started

1. Install

npm install trieve-widgets
# or
yarn add trieve-widgets

2. Usage

Import the widget and theme in your React app:

import { ThemeProvider } from "@mui/material";
import { theme, SearchBillersWidget } from "trieve-widgets";

function App() {
  return (
    <ThemeProvider theme={theme}>
      <SearchBillersWidget />
    </ThemeProvider>
  );
}

Customization

  • onRecordClick: Optional callback when a record is clicked.
  • sx: Pass MUI style overrides.
<SearchBillersWidget
  onRecordClick={(record) => alert(record.name)}
  sx={{ my: 4 }}
/>

Development

Run Storybook

npm run storybook

Build the Library

npm run build

Lint

npm run lint

Folder Structure

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
└── ...

Publishing

This package is built with Vite and bundled for npm using vite build and tsup.
Exports are defined in src/index.ts.

License

MIT

FAQs

Package last updated on 14 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts