You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@0x1js/components

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

@0x1js/components

High-quality, dependency-free components for 0x1 applications

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

0x1 Component Library

A crafted, high-performance component library for 0x1 Framework applications. Designed to be minimal, flexible, and zero-dependency, while providing a simple developer experience.

Features

Zero Dependencies — Pure TypeScript/JSX components with no external libraries ✅ Type-Safe — Fully typed components with comprehensive TypeScript definitions ✅ Customizable — Easily customize components via props or extend them as needed ✅ Minimal — Designed for optimal bundle size and performance ✅ Accessible — Built with accessibility in mind, following WCAG guidelines ✅ Modern — Leveraging the latest web standards and best practices ✅ Beautiful Docs — Comprehensive markdown documentation for each component

Installation

Components can be added to your project using the 0x1 CLI:

# Add a specific component
0x1 add Button

# Add multiple components at once
0x1 add Button Card Container

Available Components

UI Components

ComponentDescriptionStatus
ButtonFlexible button component with various styles and states
CardVersatile card component for content containers
BadgeSmall status indicators🏗️
AvatarUser profile pictures with fallback🏗️
DialogModal dialog with customizable content🏗️
DropdownToggleable menu for options🏗️
ToggleOn/off switch component🏗️

Layout Components

ComponentDescriptionStatus
ContainerResponsive container with max-width
GridFlexible grid layout system🏗️
StackVertical or horizontal stacking with consistent spacing🏗️
DividerHorizontal or vertical dividing line🏗️

Form Components

ComponentDescriptionStatus
InputText input with validation🏗️
SelectDropdown select menu🏗️
CheckboxCustomizable checkbox component🏗️
RadioGroupGroup of radio options🏗️
SwitchToggle switch with animation🏗️

Data Display

ComponentDescriptionStatus
TableData table with sorting and filtering
ListSimple list component🏗️
CodeCode block with syntax highlighting🏗️

Feedback Components

ComponentDescriptionStatus
ToastNotification toast messages
AlertContextual feedback messages
ProgressLoading and progress indicators🏗️
SkeletonLoading placeholder🏗️

Component Structure

Each component follows a consistent structure:

ComponentName/
├── ComponentName.tsx      # Main component implementation
├── ComponentName.md       # Documentation with examples
├── variants.ts           # Style variants and configurations (if applicable)
└── utils.ts              # Helper functions (if needed)

Design Principles

The 0x1 Component Library follows these core principles:

  • Function over form — Components should be practical first, with styling as an enhancement
  • Composition over configuration — Prefer composable patterns over complex prop APIs
  • Progressive enhancement — Components should work without JavaScript when possible
  • Accessibility by default — All components must meet WCAG AA standards
  • Performance-focused — Minimal re-renders and optimal runtime performance

Contributing

We welcome contributions to the 0x1 Component Library! Please follow these steps:

  • Create a new component following the existing structure
  • Ensure comprehensive documentation and examples
  • Add appropriate TypeScript types
  • Test with different use cases
  • Submit a pull request

License

TDL © 0x1 Framework

Keywords

0x1

FAQs

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