✨ 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:
1 parent
b4930f754e
commit
559fd2b971
12 files changed
+164
No files matched your search
@@ -0,0 +1,5 @@
|
||||
type ClassValue = string | false | null | undefined;
|
||||
|
||||
export function cn(...classes: ClassValue[]): string {
|
||||
return classes.filter(Boolean).join(" ");
|
||||
}
|
||||
Reference in new issue
Block a user