@bonlineza/lib
v0.0.0
Published
Bonline UI component library
Readme
@bonlineza/lib
Bonline's modern React component library. TypeScript, Tailwind, and tested.
Install
yarn add @bonlineza/libPeer dependencies: react and react-dom (v18 or v19).
This library ships Tailwind utility classes. In the app that uses it, add
the library to your Tailwind content so the classes get compiled:
// tailwind.config.js
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'./node_modules/@bonlineza/lib/dist/**/*.{mjs,cjs}',
],Use
import { Checkbox } from '@bonlineza/lib/Checkbox';
<Checkbox name="terms" label="Accept terms" onChange={handleChange} />;Import each component from its own path, as above. The root import
(from '@bonlineza/lib') also works and tree-shakes in production
builds — use it on React Native apps below 0.79, where per-path imports are
not supported.
Develop
This project uses yarn 1.22.22 (pinned via packageManager) and
Node 24 (pinned via .nvmrc — run nvm use).
yarn install # install dependencies
yarn test # run tests
yarn build # build the package into dist/
yarn lint # check formatting and lint rulesPublish
We use Changesets. No manual
version bumps or npm publish. See PUBLISHING.md for the
full guide.
- Make your change on a branch.
- Run
yarn changeset, pick the bump type, write a short summary. - Open a PR and merge it.
- A "Version Packages" PR appears. Merge it — that publishes to npm.
