Skip to content

Commit 8e4ad8b

Browse files
ROOS-331: Added type parameter to button component (#1492)
1 parent 3b31082 commit 8e4ad8b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/great-monkeys-matter.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@nl-rvo/css-button": patch
3+
"@nl-rvo/component-library-react": patch
4+
---
5+
6+
Update Button component with type parameter

components/button/src/template.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export interface IButtonProps extends HTMLAttributes<HTMLButtonElement> {
2121
busy?: boolean;
2222
fullWidth?: boolean;
2323
className?: string;
24+
type?: 'submit' | 'reset' | 'button' | undefined;
2425
/** @uxpinpropname On Focus */
2526
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
2627
/** @uxpinpropname On Blur */

0 commit comments

Comments
 (0)