@insertlogic/o8-lib
v1.0.14
Published
React component library for building user interfaces for Insert:Logic Orchestr8 applications.
Readme
o8-lib
Library for commonly used components in Orchestr8 UI frontends.
How to use
Install the library:
npm install o8-libImport the base css required for the components to work properly in you
main.tsor similar start file.import "tailwindcss"; import "o8-lib/o8-lib.css";Import and use the components in your React application:
import { Button, Input } from "@insertlogic/o8-lib/components"; function App() { return ( <div className="p-4"> <Input placeholder="Enter text" /> <Button onClick={() => alert("Button clicked!")}>Click Me</Button> </div> ); } export default App;
Storybook
To view the components in isolation and see their documentation, you can run Storybook:
npm run storybookBuilt on
Push new version
- Update the version in
package.json. - Check for errors:
npm run build - Do a dry run:
npm publish --dry-run - Commit changes to git
- GitHub Actions will automatically build the package and publish it to npm.
Manually publish to npm
- Build the package:
npm run build - Do a dry run:
npm publish --dry-run - Publish to npm:
npm publish
Global CSS Utilities
The library ships with a set of base utilities and browser-specific overrides.
These are included globally — no import required.
Loader
.loader { ... }- Displays a spinning circular loader.
- Uses CSS mask and animation.
No Scrollbar
.no-scrollbar { ... }- Removes scrollbars across browsers.
- Supports Chrome, Safari, Opera, Firefox, IE, and Edge.
Hidden Scrollbar (WebKit-only)
.scrollbar-hidden::-webkit-scrollbar { ... }Hides scrollbars in Chrome/Safari/Opera but keeps scrollable behavior.
Minimal Scrollbar
.scrollbar-ms { ... }- Thin, styled scrollbar.
- Firefox: scrollbar-width: thin.
- WebKit: custom width, thumb color, rounded edges.
Clean Number Input
.input-number-clean { ... }- Removes up/down spin buttons from .
- Works in WebKit and Firefox.
Toast Styles
.toaster .toast { ... }
Example - overwrite info variant
.toaster .toast.toast-info {
background-color: Your Color;
border-color: Your Color;
color: Your Color;
}
.toaster .toast.toast-info .toast-description {
color: Your Color;
}
.toaster .toast.toast-info .toast-action-button {
background-color: Your Color;
color: Your Color;
}Base toast styles:
- Background: var(--primary)
- Border: var(--border)
- Shadow: subtle
Variants:
- .toast-success → green success
- .toast-error → red destructive
- .toast-warning → yellow warning
- .toast-info → neutral/info
Each variant also styles:
- .toast-description → secondary text
- .toast-action-button → inverse button inside toast
