Skip to content

Commit

Permalink
error-story med maks lengde
Browse files Browse the repository at this point in the history
  • Loading branch information
HalvorHaugan committed Nov 17, 2023
1 parent acee2a9 commit ac48de5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions @navikt/core/react/src/form/stories/textarea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ export const Error = () => {
error="Consectetur labore velit eiusmod Lorem ut nostrud mollit labore ullamco laboris laboris in."
size="small"
/>

<Textarea
label="Ipsum enim quis culpa"
error="Consectetur labore velit eiusmod Lorem ut nostrud mollit labore ullamco laboris laboris in."
maxLength={20}
/>

<Textarea
label="Ipsum enim quis culpa"
error="Consectetur labore velit eiusmod Lorem ut nostrud mollit labore ullamco laboris laboris in."
value="Sed dignissim sollicitudin porta."
maxLength={20}
size="small"
/>
</div>
);
};
Expand Down

0 comments on commit ac48de5

Please sign in to comment.