Skip to content

Commit

Permalink
change wording on data attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Jan 7, 2025
1 parent 88f0f4e commit 3e31922
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ export type Size = 'sm' | 'md' | 'lg';

export type DefaultProps = {
/**
* Sets a size for descendant Designsystemet components.
* Changes size for descendant Designsystemet components. Select from predefined sizes.
*/
'data-size'?: Size | (string & {});
/**
* Sets a color for descendant Designsystemet components.
* Changes color for descendant Designsystemet components.
* Select from predefined colors and colors defined using theme.designsystemet.no.
*/
'data-color'?: Color | (string & {});
};
Expand Down

0 comments on commit 3e31922

Please sign in to comment.