Author: marthvon <mamertvonn@gmail.com>
"Gib [meaning: fasten (parts) together with a gib] React Components together into your webapp. Giving you HeadLessUI that you need."
Package of Frontend Components using React > 18.
Note: Only works for TailwindCss versions > 4.0
npm install tailwindcss postcss postcss-import autoprefixer @marthvon/frontail --save-dev
npm install @marthvon/gibbing-headless-uiFollow setup guide within this link https://www.npmjs.com/package/@marthvon/frontail
tailwind.config.js
const config = {
content: [
// ...
"./node_modules/@marthvon/gibbing-headless-ui/dist/**/*.{js,ts,jsx,tsx,mdx,css}"
] // ...global.css
@import '../../node_modules/@marthvon/frontail/components/index.css';Optionally, import only what you need from components
global.css
/* for example */
@import '../../node_modules/@marthvon/frontail/components/image_carousel.css';
@import '../../node_modules/@marthvon/frontail/components/slider.css';tsconfig.json
{
"compilerOptions": {
// ...
"preserveConstEnums": false,
"isolatedModules": false,
// ...Alternatively, adhere to installation guide to setup the following
npm install @fullhumam/postcss-purgecss --save-devIn use cases of Server-Side Rendering or Static Site Generation
import { /*...*/ } from "@marthvon/gibbing-headless-ui/presets.server";When component is expected to be Client Side Rendered, instead use:
import { /*...*/ } from "@marthvon/gibbing-headless-ui/presets.client";The above focuses on inlining the class name styles and avoids talwind compilation of unused component styles. In summary, Avoids false positives when tailwind scans for css styles to compile (ideally, experimental).
- ImageCarousel
- GridView
- Card Modals
- Panels
- Textbox
- Slider
- DualSlider
- Digitbox
- Toggle
- Dropdown
- Searchbox (later)
- DatePicker (later)