New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@rive/react

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rive/react

create react based design system

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

rive

rive is a tool to generate documents for design languges and design systems. it is designed for react. features:

  • minimum configuration
  • visual test
  • zero cost

setup

install rive package:

npm install --save-dev rive

create rive.jsx:

import rive from "rive";
import Markdown from "react-markdown";
import about from "./docs/about.md";
import ButtonDoc from "./components/button/doc";
import ButtonDefault from "./components/button/cases/default";

rive.config({
    name: "FDL",
    description: "Foobar Design Language",
    copyright: "2019-2091 Nobody"
});

// Add Markdown as page
rive.addPage({
    path: "/about",
    title: "About",
    content: <Markdown source={about} />
});

// Add React component as page
rive.addPage({
    path: "/components/button",
    title: "Button",
    content: <ButtonDoc />
});

// Add visual test case
rive.addCase({
    path: "/components/button/default",
    content: <ButtonDefault />,
    width: 300,
    height: 100
});

rive.render();

modify package.json

{
    "scripts": {
        "start": "rive start",
        "build": "rive build",
        "test": "rive test"
    }
}

let's go!

npm run start

Keywords

design

FAQs

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