A collection of components to be reused across personal projects. View live here
yarn add @e-krebs/react-library
Typescript types are included with the package.
The components can then be imported from the root of the package:
import { Checkbox, TextInput } from '@e-krebs/react-library';
in addition the the components, you can import the tailwindcss preset from the package:
tailwind.config.js
// tailwind.config.js
const shared = require('@e-krebs/react-library/tailwind.config.js');
module.exports = {
presets: [shared],
content: ['./src/**/*.{html,ts,tsx}', './node_modules/@e-krebs/react-library/dist/**/*.js'],
theme: {
extend: {},
},
};
start by installing dependencies
bun install
to run in dev:
bun run dev
this will:
localhost:61000
to run in production mode:
bun run build
this will:
to publish a new documentation:
to publish a new package: