Home
Softono

React Devui

Open source MIT TypeScript
127
Stars
46
Forks
10
Issues
7
Watchers
2 years
Last Commit

 About React Devui

UI components based on React and DevUI Design

Platforms

Web Self-hosted Cloud

Languages

TypeScript

Need Help Installing React Devui?

We provide expert installation service for this software. Our team will install, configure, and secure React Devui on your server. plans start at just $30.

React Devui

View on GitHub

DevUI logo

React DevUI

npm latest package npm bundle size gitHub workflow status

English | 简体中文

Installation

yarn add @react-devui/ui @react-devui/icons @react-devui/hooks @react-devui/utils

Getting Started

import type { DRootProps } from '@react-devui/ui';

import { useMemo } from 'react';

import { DRoot } from '@react-devui/ui';

export default function App() {
  const rootContext = useMemo<DRootProps['context']>(
    () => ({
      layout: { pageScrollEl: '#app-main', contentResizeEl: '#app-content' },
    }),
    []
  );

  return (
    <DRoot context={rootContext}>
      <main id="app-main" style={{ overflow: 'auto' }}>
        <section id="app-content" style={{ height: '200vh' }}>
          Some content...
        </section>
      </main>
    </DRoot>
  );
}

Links

Contributing

Please read our contributing guide first.

Need unit test support (Jest) 🤝.

License

gitHub license