New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

diamant

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diamant

Beautiful React UI components, one command away

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

✨ Diamant

Beautiful React UI components, one command away

npm version npm downloads GitHub stars License Demo

Add stunning, accessible UI components to your React and Next.js projects.
Inspired by shadcn/ui — own your components, customize everything.

Live DemoGetting StartedComponentsCommandsConfiguration

Getting Started

Get up and running in seconds with a single command:

npx diamant init

This will automatically:

  • Detect or install Tailwind CSS
  • Set up theme variables and animations
  • Create the cn() utility function
  • Generate diamant.json configuration

Adding Components

# Add specific components
npx diamant add button dialog card

# Add all components at once
npx diamant add --all

# Interactive picker (prompts you to select)
npx diamant add

Components

A carefully curated collection of 25+ accessible, customizable components:

ComponentDescription
accordionCollapsible content sections
alertStatic callout messages
alertdialogModal confirmation dialogs
avatarUser profile images with fallback
badgeSmall status indicators
buttonClick actions with ripple effect
cardContent containers
carouselImage/content slideshows
checkboxBoolean form inputs
dialogModal dialogs
dropdownClick/hover menus
inputText input fields
labelForm labels
notificationToast notifications
progressProgress indicators
radioSingle-select options
selectDropdown selection
separatorVisual dividers
sheetSlide-in panels
skeletonLoading placeholders
sliderRange inputs
switchToggle switches
tabsTabbed interfaces
textareaMulti-line inputs
toggleTwo-state buttons
tooltipHover information

Commands

CommandDescription
npx diamant initInitialize Diamant in your project
npx diamant add [components...]Add one or more components
npx diamant remove <components...>Remove installed components
npx diamant update [components...]Update components to latest versions
npx diamant diff [component]View local changes vs. original
npx diamant listList all available components

Configuration

After running init, a diamant.json file is created in your project root:

{
    "typescript": true,
    "tailwind": {
        "config": "tailwind.config.js",
        "css": "src/app/globals.css"
    },
    "aliases": {
        "components": "src/components/ui",
        "utils": "src/lib"
    }
}

You can customize:

  • TypeScript support — toggle .ts/.tsx or .js/.jsx output
  • Tailwind paths — point to your config and global CSS files
  • Component aliases — define where components and utilities live

Requirements

RequirementVersion
Node.js18+
React18+
Tailwind CSS3.4+ or 4+

Contributing

Contributions are welcome! Feel free to:

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

License

MIT © Vahan Gevorgyan


Made with ❤️ for the React community

Keywords

ui

FAQs

Package last updated on 12 Jan 2026

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