New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rakuten-rex/button

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rakuten-rex/button

ReX React UI Component

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-78.95%
Maintainers
4
Weekly downloads
 
Created
Source

ReX React UI Components Library

ReX React UI Component: button

This project is part of ReX Design Language and it can be used to create React UI Components.
For more information visit:

Github
https://github.com/rakuten-rex

NPM
https://www.npmjs.com/org/rakuten-rex

How it was built:

  1. webpack 4 (static module bundler)
  2. HTML5
  3. CSS3 & Sass (Normalize.css + Fork of Bootstrap project + ReX custom styles)
  4. JavaScript ES6 Modules & Components based on React

How to install

npm install @rakuten-rex/button@0.0.3 --save

Getting started

1) Storybook Live examples

For a complete guide of properties for React and HTML classes please visit the Storybook site:

https://rakuten-rex.github.io/button/

2) Choose the distribution builds

ReX Component + ReX Core (with ReX Fonts)

For projects with full ReX implementation.

import RexComponent from '@rakuten-rex/button';

ReX Component + ReX Core (without ReX Fonts)

For integration projects.

import RexComponent from '@rakuten-rex/button/without-fonts.js';

ReX Component Only (without ReX Core)

For integration projects using Static HTML or if you use a build tools without duplicated CSS classes removal.

Note: Requires global import of ReX Core.

import RexComponent from '@rakuten-rex/button/without-core.js';

How to integrate ReX in your project

A) JavaScript modules

React component (JavaScript + CSS Styles)

For plug and play components integration.

Example:

import RexComponent from '@rakuten-rex/button';

function MyComponent() {
  return <RexComponent>Hello World</RexComponent>;
}

CSS Styles only

For your own JavaScript integration (React, Vue, Angular, etc.) or Static HTML.

Example:

import '@rakuten-rex/button/css';

function MyComponent() {
  return <h1 className="rex-core-h1 rex-h1">Hello World</h1>;
}

B) Static HTML

Copy-paste the stylesheet <link> into your <head> before all other stylesheets to load our CSS.

You can choose between development (dev comments and unminified) or production (without dev comments and minified) mode.

We recommend to use production mode if your build process doesn't support to switch between both.

Development mode URL:
https://r.r10s.jp/com/rex/button/0.0.3/button.development.css

Production mode URL:
https://r.r10s.jp/com/rex/button/0.0.3/button.production.min.css

Single component integration

Add it from our CDN into your HTML template or HTML static page.

<!-- ReX button -->
<link href="https://r.r10s.jp/com/rex/button/0.0.3/button.production.min.css" rel="stylesheet">

Multiple component integration

Note: use button-without-core.min.css version to avoid duplicated code from ReX Core.

<!-- ReX Core -->
<link href="https://r.r10s.jp/com/rex/core/2.3.1/full-version.production.min.css" rel="stylesheet">

<!-- ReX button -->
<link href="https://r.r10s.jp/com/rex/button/0.0.3/button-without-core.production.min.css" rel="stylesheet">

Example:

<div class="rex-button">
  <h1 class="rex-core-h1 rex-h1">Welcome to React</h1>
</div>

Keywords

FAQs

Package last updated on 28 Aug 2019

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