React-components for Nav's design system.
- Uses styling defined in
@navikt/ds-css
- All components are implemented with React.forwardRef!
- Most components extend native html-elements.
yarn add @navikt/ds-react
npm install @navikt/ds-react
Remember to also import @navikt/ds-css
for styling!
import { Button } from "@navikt/ds-react";
function App() {
return <Button variant="secondary">Click me!</Button>;
}