Installation & quick start

Installation

To install and save to your project's package.json dependencies, run:

// with npm
npm install @royalnavy/css-framework @royalnavy/react-component-library

// ...or with yarn
yarn add @royalnavy/css-framework @royalnavy/react-component-library

Quick start

Here's a quick example of an application to get you started:

import React from 'react'
import ReactDOM from 'react-dom'
import '@royalnavy/css-framework/dist/styles.css'
import '@royalnavy/fonts'
import { Button } from '@royalnavy/react-component-library'

function App() {
  return (
    <Button variant="primary">
      Hello, World!
    </Button>
  )
}

ReactDOM.render(<App />, document.querySelector('#app'))