Socket
Book a DemoInstallSign in
Socket

@djangocfg/ui-core

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@djangocfg/ui-core

Pure React UI component library without Next.js dependencies - for Electron, Vite, CRA apps

latest
Source
npmnpm
Version
2.1.41
Version published
Maintainers
1
Created
Source

@djangocfg/ui-core

Pure React UI library with 60+ components built on Radix UI + Tailwind CSS v4.

No Next.js dependencies — works with Electron, Vite, CRA, and any React environment.

Part of DjangoCFG — modern Django framework for production-ready SaaS applications.

Live Demo & Props

Install

pnpm add @djangocfg/ui-core

Why ui-core?

PackageUse Case
@djangocfg/ui-coreElectron, Vite, CRA, any React app
@djangocfg/ui-nextjsNext.js apps (extends ui-core)

Components (61)

Forms (16)

Label Button ButtonLink Input Checkbox RadioGroup Select Textarea Switch Slider Combobox MultiSelect InputOTP PhoneInput Form Field

Layout (8)

Card Separator Skeleton AspectRatio Sticky ScrollArea Resizable Section

Overlay (7)

Dialog AlertDialog Sheet Drawer Popover HoverCard Tooltip

Feedback (6)

Toast Toaster Alert Progress Badge Avatar

Data (8)

Table Tabs Accordion Collapsible Toggle ToggleGroup Calendar Carousel

Interactive (3)

Command ContextMenu Chart

Specialized (13)

ButtonGroup Empty Spinner Preloader Kbd TokenIcon InputGroup Item ImageWithFallback OgImage CopyButton CopyField StaticPagination

Hooks (10)

HookDescription
useMediaQueryResponsive breakpoints
useIsMobileMobile detection
useCopyCopy to clipboard
useCountdownCountdown timer
useDebounceDebounce values
useDebouncedCallbackDebounced callbacks
useImageLoaderImage loading state
useToastToast notifications
useEventListenerEvent bus
useDebugToolsDebug utilities

Usage

import { Button, Card, Input, useToast } from '@djangocfg/ui-core';

function Example() {
  const { toast } = useToast();

  return (
    <Card>
      <Input placeholder="Email" />
      <Button onClick={() => toast({ title: 'Saved!' })}>
        Submit
      </Button>
    </Card>
  );
}

Electron Usage

// In Electron renderer process
import { Button, Dialog, useMediaQuery } from '@djangocfg/ui-core';
import '@djangocfg/ui-core/styles/globals';

function App() {
  const isMobile = useMediaQuery('(max-width: 768px)');

  return (
    <Dialog>
      <Button>Open Dialog</Button>
    </Dialog>
  );
}

Styling

// Import global styles
import '@djangocfg/ui-core/styles/globals';

Exports

PathContent
@djangocfg/ui-coreAll components & hooks
@djangocfg/ui-core/componentsComponents only
@djangocfg/ui-core/hooksHooks only
@djangocfg/ui-core/libUtilities (cn, etc.)
@djangocfg/ui-core/stylesCSS

What's NOT included (use ui-nextjs)

These features require Next.js or browser storage APIs:

  • Sidebar — uses next/link
  • Breadcrumb, BreadcrumbNavigation — uses next/link
  • NavigationMenu, Menubar — uses next/link
  • Pagination, SSRPagination — uses next/link
  • DropdownMenu — uses next/link
  • DownloadButton — uses localStorage
  • useLocalStorage, useSessionStorage — browser storage
  • useTheme — uses next-themes
  • useQueryParams, useCfgRouter — uses next/router

Requirements

  • React >= 18 or >= 19
  • Tailwind CSS >= 4

Full documentation & examples

Keywords

ui-components

FAQs

Package last updated on 16 Dec 2025

Did you know?

Socket

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.

Install

Related posts