Socket
Book a DemoInstallSign in
Socket

@djangocfg/ui

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@djangocfg/ui

Production-ready React UI component library with Radix UI primitives, Tailwind CSS styling, charts, and form components

latest
Source
npmnpm
Version
1.4.44
Version published
Weekly downloads
101
-94.87%
Maintainers
1
Weekly downloads
 
Created
Source

@djangocfg/ui

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

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

Live Demo & Props

Install

pnpm add @djangocfg/ui

Components

Forms (19)

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

Layout (8)

Card Separator Skeleton AspectRatio Sticky ScrollArea Resizable Section

Navigation (7)

NavigationMenu Breadcrumb Tabs Pagination BreadcrumbNavigation SSRPagination StaticPagination

Overlay (11)

Dialog AlertDialog Sheet Drawer Popover HoverCard Tooltip Command ContextMenu DropdownMenu Menubar

Feedback (6)

Toast Alert Progress Badge Avatar Toaster

Data (8)

Table Accordion Collapsible Toggle ToggleGroup Calendar Carousel Chart

Specialized (10)

Sidebar ImageWithFallback ButtonGroup Empty Spinner Kbd TokenIcon Sonner InputGroup Item

Tools (4)

JsonTree PrettyCode Mermaid LottiePlayer

Blocks (7)

Hero SuperHero FeatureSection CTASection NewsletterSection StatsSection TestimonialSection

import { Hero } from '@djangocfg/ui/blocks';

Hooks (6)

HookDescription
useMediaQueryResponsive breakpoints
useThemeLight/dark theme
useCopyCopy to clipboard
useCountdownCountdown timer
useDebounceDebounce values
useIsMobileMobile detection
useLocalStoragePersistent state

Usage

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

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

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

Styling

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

Exports

PathContent
@djangocfg/uiAll components & hooks
@djangocfg/ui/blocksLanding page blocks
@djangocfg/ui/toolsJsonTree, Mermaid, etc.
@djangocfg/ui/stylesCSS

Tailwind v4

  • Arbitrary values (h-[80px]) may not work - use inline styles
  • Opacity modifiers (bg-background/80) broken with HSL - use inline styles
  • Define spacing/z-index in @theme block

Requirements

  • React >= 19
  • Tailwind CSS >= 4

Full documentation & examples

Keywords

ui-components

FAQs

Package last updated on 04 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