Modern, decoupled, glassmorphic UI library for React with zero heavy dependencies.
npm install @pixonui/react
Modern. Decoupled. Glassmorphic. Native-First.
The core React component library for PixonUI, built for performance and aesthetics.
, IntersectionObserver, and ValidityState) over heavy JavaScript polyfills.
content-visibility for large datasets.
bash
npm install @pixonui/react
`
🔧 Configuration
Add the package to your tailwind.config.js content array:
`js
/* @type {import('tailwindcss').Config} /
module.exports = {
content: [
"./src/*/.{js,ts,jsx,tsx}",
"./node_modules/@pixonui/react/dist/*/.{js,mjs}"
],
theme: {
extend: {
// PixonUI looks best with a dark background
colors: {
background: '#0A0A0A',
}
},
},
plugins: [require("tailwindcss-animate")],
}
`
🛠️ Usage Examples
$3
`tsx
import { Dialog, DialogHeader, DialogTitle, Button } from '@pixonui/react';
function MyModal() {
const [open, setOpen] = React.useState(false);
return (
<>
>
);
}
`
$3
`tsx
import { Reveal, Magnetic, NumberTicker } from '@pixonui/react';
function Hero() {
return (
Welcome to the Future
Users joined:
);
}
``