Skip to content

ui 0.9.1

Install from the command line:
Learn more about npm packages
$ npm install @operatiemobilisatie/ui@0.9.1
Install via package.json:
"@operatiemobilisatie/ui": "0.9.1"

About this version

OM/UI

A collection of React components for OM websites and applications, most components are build on Radix/UI. It uses TailwindCSS and therefore also exports a tailwind.config.js preset, configured with all the official OM colors. As most projects are build using Next.js this library will be fully compatible with it. This library also has TypeScript support.

Storybook

You can view the available components in Storybook here.

Usage

Make sure you've imported the OM/UI styles into your globals.css or main.css:

/* app/globals.css */

@import "@operatiemobilisatie/ui/css";

Add the OM/UI Tailwind preset to your tailwind.config.js and include the library as content:

// tailwind.config.js

import tailwindPreset from "@operatiemobilisatie/ui/tailwindcss";

/** @type {import('tailwindcss').Config} */
module.exports = {
  presets: [
    tailwindPreset // OM/UI Tailwind Preset here
  ],
  content: [
    "./node_modules/@operatiemobilisatie/ui/dist/src/**/*.{js,jsx,ts,tsx}" // Define as content like so
  ],
  theme: {
    extend: {},
  }
}

Only thing now is to simply import the component and use it!

// app/page.js

import { Button } from '@operatiemobilisatie/ui/button';

export default function Page() {
  return (
      <Button variant="primary" size="lg">God is love!</Button>
  );
}

To Do

  • [x] Publish to NPM
  • [ ] Add documentation

Details


Assets

  • ui-0.9.1.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0