https://github.com/govtechsg/sgds-theme-customiser
https://github.com/govtechsg/sgds-theme-customiser
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/govtechsg/sgds-theme-customiser
- Owner: GovTechSG
- Created: 2019-07-11T02:40:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T15:26:06.000Z (about 2 years ago)
- Last Synced: 2025-01-03T03:13:01.696Z (over 1 year ago)
- Language: JavaScript
- Size: 4.56 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sgds-govtech-react
React components powered by [Singapore Government Design System](https://www.designsystem.gov.sg).
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](https://github.com/govtechsg/sgds-govtech-react/pulls)!
## Installation
```
npm install sgds-govtech-react
```
## Usage
### You will need to first import the [sgds](https://www.designsystem.gov.sg) css styles, either in your website's `` element or through your frontend build.
#### HTML
```html
```
#### Webpack
```javascript
// In your entry point
import 'sgds-govtech/sass/sgds.css'
```
### Getting started
```jsx
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from "sgds-govtech-react";
const app = () => {
return (
Submit
)
}
ReactDOM.render(
app,
document.getElementById('root')
);
```