✨ Add Button, BodyShort and Heading to @navikt/ds-react

forwardRef-based components with navds-* classnames composed via a small
local cn() utility. Adds shared tsconfig.base.json and truncate modifier
for BodyShort.
This commit is contained in:
Aksel Mini committed 2026-08-10 11:00:00 +02:00
1 parent b4930f754e
commit 559fd2b971
12 files changed
+164

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
{
"name": "@navikt/ds-react",
"version": "0.1.0",
"description": "React components for Aksel Mini",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"clean": "rm -rf dist"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@types/react": "18.3.11",
"@types/react-dom": "18.3.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"typescript": "5.5.4"
}
}