1.15.3 • Published 4 months ago
@moser-inc/moser-labs-react v1.15.3
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.15.3
4 months ago
1.15.2
8 months ago
1.15.1
8 months ago
1.15.0
8 months ago
1.14.2
9 months ago
1.14.1
9 months ago
1.13.0
9 months ago
1.12.2
9 months ago
1.12.1
9 months ago
1.12.0
9 months ago
1.11.1
9 months ago
1.11.0
9 months ago
1.10.3
9 months ago
1.10.2
9 months ago
1.10.1
9 months ago
1.10.0
9 months ago
1.9.0
9 months ago
1.8.1
9 months ago
1.8.0
9 months ago
1.7.0
9 months ago
1.6.0
9 months ago
1.5.0
9 months ago
1.4.0
9 months ago
1.3.3
9 months ago
1.3.2
9 months ago
1.3.1
9 months ago
1.3.0
9 months ago
1.2.5
9 months ago
1.2.4
9 months ago
1.2.2
10 months ago
1.2.1
10 months ago
1.1.0
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago