
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@enonic/ui
Advanced tools
A modern UI component library built with Preact/React, TypeScript, and Tailwind CSS.
pnpm add @enonic/ui react react-dom @radix-ui/react-slot focus-trap-react
pnpm add @enonic/ui preact @radix-ui/react-slot focus-trap-react
npm install @enonic/ui react react-dom @radix-ui/react-slot focus-trap-react
npm install @enonic/ui preact @radix-ui/react-slot focus-trap-react
yarn add @enonic/ui react react-dom @radix-ui/react-slot focus-trap-react
yarn add @enonic/ui preact @radix-ui/react-slot focus-trap-react
import { Button, Input } from '@enonic/ui';
function App() {
return (
<div>
<Button variant='primary' size='md'>
Click Me
</Button>
<Input placeholder='Enter text...' />
</div>
);
}
If your project uses Tailwind CSS, you can import the styles directly from the library:
/* Import Tailwind CSS */
@import 'tailwindcss';
/* Required by some components that use animations */
@import 'tw-animate-css';
/* Preset styles (includes tokens, base, and utilities) */
@import '@enonic/ui/preset.css';
If you only need the pre-built CSS styles:
@import '@enonic/ui/style.css';
This library requires one of the following frameworks:
{
"react": "^19.0.0",
"react-dom": "^19.0.0",
"@radix-ui/react-slot": "^1.2.0",
"focus-trap-react": "^11.0.0"
}
{
"preact": ">=10.0.0",
"@radix-ui/react-slot": "^1.2.0",
"focus-trap-react": "^11.0.0"
}
The library uses and expects one of the following icon libraries to be used to provide icons for the components:
lucide-react (>=0.500.0) - For React projectslucide-preact (>=0.500.0) - For Preact projects# Install dependencies
pnpm install
# Start development server with Storybook
pnpm dev
# Build the library
pnpm build
# Run type checking
pnpm typecheck
# Run linting
pnpm lint
# Check bundle size
pnpm size
MIT
FAQs
Enonic UI Component Library
The npm package @enonic/ui receives a total of 176 weekly downloads. As such, @enonic/ui popularity was classified as not popular.
We found that @enonic/ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.