Skip to content

rav3/sgds-govtech-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sgds-govtech-react

React components powered by Singapore Government Design System.

We are in early development! If you are trying out sgds-govtech-react, feel free to leave us feedback in the issues page, or even submit a PR!

Installation

npm install sgds-govtech-react

Usage

You will need to first import the sgds css styles, either in your website's <head> element or through your frontend build.

HTML

<head>
    <link
        rel="stylesheet"
        href="https://unpkg.com/sgds-govtech/css/sgds.css"
    />
</head>

Webpack

// In your entry point

import 'sgds-govtech/sass/sgds.css'

Getting started

import React from 'react';
import ReactDOM from 'react-dom';

import { Button } from "sgds-govtech-react";

const app = () => {
    return (
        <div className="App">
            <Button>Submit</Button>
        </div>
    )
}

ReactDOM.render(
  app,
  document.getElementById('root')
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.7%
  • CSS 7.2%
  • HTML 3.1%