2.3.0 • Published 10 days ago

@govtechsg/sgds v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

Singapore Government Design System

npm

The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.

Visit our React storybook Visit our Web Component storybook


Installation

CSS

<head>
    ...
    <link
        rel="stylesheet"
        href="https://cdn.jsdelivr.net/npm/@govtechsg/sgds/css/sgds.css"
    />
    ...
</head>

Vanilla JavaScript

SGDS components makes use of bootstrap v5.1.3 js library as an external dependency. If you only need the visual parts of SGDS, or if you are using frontend frameworks like React, you do not need to import this.

@govtechsg/sgds uses bootstrap-icons for certain components like Form but it is not ship with it. Install bootstrap-icons or use CDN if you need it. Please refer to bootstrap-icons for usage instructions.

<head>
  ...
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@govtechsg/sgds/css/sgds.css" />
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
  ...
</head>

<body>
  ...
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
    crossorigin="anonymous"></script>
</body>

For more information, please refer to the components documentation.

Via NPM

$ npm i @govtechsg/sgds bootstrap-icons

For Webpack

//importing css
import '@govtechsg/sgds/css/sgds.css';

import '@popperjs/core';
import * as bootstrap from 'bootstrap';

Patch Notes

See Changelog

2.3.0

10 days ago

2.3.0-alpha.0

1 month ago

2.2.0

4 months ago

2.2.0-alpha.2

4 months ago

1.4.1

4 months ago

2.2.0-beta.0

8 months ago

2.2.0-beta.1

6 months ago

2.1.1

1 year ago

2.1.0

2 years ago

2.1.0-beta.2

2 years ago

2.1.0-beta.1

2 years ago

2.0.0

2 years ago

2.0.0-beta.1

2 years ago

2.0.0-alpha.4

2 years ago

1.4.0

2 years ago

1.3.24

2 years ago

2.0.0-alpha.3

2 years ago

1.3.23

2 years ago