1.16.4 • Published 8 months ago
@moser-inc/moser-labs-react v1.16.4
Moser Labs React
React components for the Moser Labs suite of applications. Build on top of PrimeReact.
Installation
npm i primereact @moser-inc/moser-labs-react
Usage
Either load all component styles in your entry point, which may include unused styles:
// main.tsx
import '@moser-inc/moser-labs-react/style.css';
Or when using UnoCSS with a bundler like Vite, configure your content sources to include labs components to load only the styles that are used:
// uno.config.ts
import { defineConfig } from 'unocss';
export default defineConfig({
content: {
pipeline: {
include: [
/(.*\/)primereact(.*)\.(c|m)?(js)(x?)$/, // primereact
/(.*\/)@moser-inc\/moser-labs-react(.*)\.(c|m)?(js)(x?)$/, // @moser-inc/moser-labs-react
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/, // default
],
},
},
});
// App.tsx
import { LabsButton } from '@moser-inc/moser-labs-react';
const App = () => {
return (
<div>
<LabsButton>Moser Labs</LabsButton>
</div>
);
};
1.16.3
8 months ago
1.16.2
8 months ago
1.16.1
8 months ago
1.16.4
8 months ago
1.15.3
1 year ago
1.15.2
1 year ago
1.15.1
1 year ago
1.15.0
1 year ago
1.14.2
1 year ago
1.14.1
1 year ago
1.13.0
1 year ago
1.12.2
1 year ago
1.12.1
1 year ago
1.12.0
1 year ago
1.11.1
1 year ago
1.11.0
1 year ago
1.10.3
1 year ago
1.10.2
1 year ago
1.10.1
1 year ago
1.10.0
1 year ago
1.9.0
1 year ago
1.8.1
1 year ago
1.8.0
2 years ago
1.7.0
2 years ago
1.6.0
2 years ago
1.5.0
2 years ago
1.4.0
2 years ago
1.3.3
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago