@irimold/react-component
v0.24.6
Published
Irimold React Component
Readme
This library contains commonly used components by Irimold, targetted for ReactJS.
Installation
Using NPM
npm i @irimold/react-componentAfter that you can import the CSS
import "@irimold/react-component/style"Or if you are using Tailwind, you can add the existing preset to your tailwind.config.js. But you will need to manually add some classes and fonts
tailwind.config.js
...
import {
IrimoldTailwindContent,
IrimoldTailwindPreset
} from "@irimold/react-component/tailwindcss-config"
/** @type {import('tailwindcss').config} */
export default {
...
content: [
...
IrimoldTailwindContent,
...
],
presets: [
...
IrimoldTailwindPreset,
...
],
...
}Your main css file
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
.montserrat {
font-family: 'Montserrat';
}
.open-sans {
font-family: 'Open Sans';
}
.dropdown {
.dropdown-list {
transition-behavior: allow-discrete;
@starting-style {
display: block;
max-height: 0;
}
}
}
.modal {
transform: translateX(100%);
transition-behavior: allow-discrete;
opacity: 0;
&[open] {
transform: translateX(0);
opacity: 1;
}
@starting-style {
opacity: 0;
display: block;
transform: translateX(-100%);
}
}
...Changelog
The changelog is regularly updated to reflect what's changed in each new release.
License
This project is licensed under the term of the MIT license.
Security
For details of supported versions and contact details for reporting security issues, please refer to the security policy.
