ds-react 1.2.4
Install from the command line:
Learn more about npm packages
$ npm install @navikt/ds-react@1.2.4
Install via package.json:
"@navikt/ds-react": "1.2.4"
About this version
All of NAVs core React-components
- Uses styling from
@navikt/ds-css
- All components implemented with React.forwardRef!
- Most components extend native html-elements.
Install @navikt/ds-react
with yarn
yarn add @navikt/ds-react
Install @navikt/ds-react
with npm
npm install @navikt/ds-react
Remember to also import @navikt/ds-css to apply styling! See README-link under "learn more"-section below.
import { Button } from "@navikt/ds-react";
function App() {
return <Button variant="secondary">Click me!</Button>;
}