Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-ui-org/react-ui

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-ui-org/react-ui

React UI is a themeable UI library for React apps.

  • 0.57.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
232
increased by65.71%
Maintainers
0
Weekly downloads
 
Created
Source

React UI

npm Coverage Status Tests npm bundle size

React components for your design system.

React UI is a themeable, performant, responsive UI library for React apps. Use it simply with no configuration or have full control over your design by tweaking some of the hundreds theming options available.

Explore React UI docs →

Key Concepts

Why another UI library? Because we couldn't find any library that would meet these requirements:

  • 🎨 Full control over design, from design tokens to components. Hundreds of CSS custom properties allow you to customize the design of your app without touching JS.

  • 📦 Smart defaults, out of the box. Create rapid prototypes that look great with no additional effort.

  • 🚀 Small bundle size. Because performance matters.

Sponsors


RACOM

Development of React UI is largely supported by RACOM—one of the leading global players in wireless Critical Infrastructure.

Quick Start Guide

To install React UI in your app:

  1. Install react-ui with npm. Make sure you also have prop-types, react and react-dom installed.

    npm install --save @react-ui-org/react-ui
    
  2. Load the Titillium Web font:

    <link
      href="https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap"
      rel="stylesheet"
    />
    
  3. Load React UI CSS in your app:

    import '@react-ui-org/react-ui/dist/react-ui.css';
    
  4. Import and use any of React UI components in your app:

    import { Button } from '@react-ui-org/react-ui';
    
    <Button label="My Button" />
    

Head to the docs to see how to use, customize, and extend React UI.

Development Mode

It is possible to run React UI in your app in development mode. This is useful because:

  • In production mode React UI uses non-human-readable class names.
  • Runtime check (i.e. PropTypes) are suppressed in production mode.

To enable development mode, add the following code to the webpack.config.js file in your app:

module.exports = (env, argv) => ({
  resolve: {
    alias: {
      // Allow to run react-ui in development mode for easier development.
      '@react-ui-org/react-ui$': argv.mode === 'production'
        ? '@react-ui-org/react-ui/dist/react-ui.js'
        : '@react-ui-org/react-ui/dist/react-ui.development.js',
      '@react-ui-org/react-ui/dist/react-ui.css': modeArgument === 'production'
        ? '@react-ui-org/react-ui/dist/react-ui.css'
        : '@react-ui-org/react-ui/dist/react-ui.development.css',
    },
  },
});

Then run webpack with the --mode=production or --mode=development flag.

Contributing

We appreciate any contributions you might make. 🙏

Please check out our Contributing Guide. It includes contribution guidelines and information on how to run and develop the project.

Keywords

FAQs

Package last updated on 11 Oct 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc