✨ 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

+5
View File
@@ -0,0 +1,5 @@
type ClassValue = string | false | null | undefined;
export function cn(...classes: ClassValue[]): string {
return classes.filter(Boolean).join(" ");
}