Wondering what’s next for npm?Check out our public roadmap! »

    @royalnavy/react-component-library
    TypeScript icon, indicating that this package has built-in type declarations

    2.49.0 • Public • Published

    React Component Library

    A collection of React components written for Royal Navy web applications.

    Installation

    The Royal Navy React Component Library is available as an NPM package.

    // npm
    npm install @royalnavy/react-component-library
    
    // yarn
    yarn add @royalnavy/react-component-library
    

    NOTE: As of 2.16.0 the styled-components package is now a required peerDependency.

    Usage

    import React from 'react'
    import ReactDOM from 'react-dom'
    import '@royalnavy/css-framework/dist/style.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'))

    Questions

    The Design System is maintained by a team at the Royal Navy. If you want to know more about the Royal Navy Design System, please email the Design System Team.

    Documentation

    The documentation website contains all the information you need to build your application using the Royal Navy Design System.

    Contributing

    The contributing guide resource presents information about our development process.

    Changelog

    If you have recently updated then read the release notes

    Roadmap

    The Design System Roadmap Board contains the work that has been prioritised for the next 12 months.

    License

    The Royal Navy Design System is licensed under the Apache License 2.0.

    Install

    npm i @royalnavy/react-component-library

    DownloadsWeekly Downloads

    1,267

    Version

    2.49.0

    License

    Apache-2.0

    Unpacked Size

    6.13 MB

    Total Files

    1896

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar