Skip to content

cloverforks/dux-ui

Repository files navigation

Dux UI

A beautiful web component library based on React using the Headless UI library and Unocss.

Version License: MIT

💥 Version

Warning: This version is for development purposes only. Some features are still under development and there may be inevitable bugs. Please do not use it in a production environment.

🎯 Features

  • ✨ using a unified and lightweight design style for the theme.
  • 🚀 using high-quality basic unstyled libraries,
  • 🎨 based on UnoCSS as CSS processor.
  • 📦 which uses Ahook as a base Hook.
  • 🛠️ TypeScript, type-safe and fully parameter-aware.
  • 📱 Accessibility support, each component supports ARIA keyboard accessibility.

⚡ Installation

yarn add @duxweb/dux-ui

To develop with React 18, make sure the React version number is >= 18.x, and install the UnoCSS

// uno.config.ts
import { defineConfig, presetUno, presetIcons, presetTypography } from 'unocss';
import { presetDux, DuxProvider } from '@duxweb/dux-ui'

export default defineConfig({
  ... 
  presets: [
    presetUno(),
    presetIcons(),
    presetTypography(),
    presetDux(),
    ...
  ]
})

Usage

import React from "react";
import ReactDOM from "react-dom";

import { Provider, Button } from "@duxweb/dux-ui";

ReactDOM.render(
  <Provider locale={context.globals.locale}>
    <Button color="primary">Hello Arco</Button>
  </Provider>,
  document.querySelector("#root")
);

Development

$ git clone [email protected]:duxweb/dux-ui.git
$ cd dux-ui
$ yarn
$ yarn dev

About

🔥 Customized web UI component library based on headless UI library and unocss

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published