File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
packages/lumx-react/src/components/button Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Fixed
11
+
12
+ - ` IconButton ` : remove the children prop as it's not actually supported by the component
13
+
10
14
## [ 3.11.0] [ ] - 2025-02-05
11
15
12
16
### Added
Original file line number Diff line number Diff line change 1
- import React , { ReactNode } from 'react' ;
1
+ import React from 'react' ;
2
2
3
3
import classNames from 'classnames' ;
4
4
import isEmpty from 'lodash/isEmpty' ;
@@ -21,14 +21,14 @@ export const ButtonEmphasis = Emphasis;
21
21
* Defines the props of the component.
22
22
*/
23
23
export interface ButtonProps extends BaseButtonProps {
24
- /** Button content. */
25
- children ?: ReactNode ;
26
24
/** Left icon (SVG path). */
27
25
leftIcon ?: string ;
28
26
/** Right icon (SVG path). */
29
27
rightIcon ?: string ;
30
28
/** When `true`, the button gets as large as possible. */
31
29
fullWidth ?: boolean ;
30
+ /** Children */
31
+ children ?: React . ReactNode ;
32
32
}
33
33
34
34
/**
Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ export interface BaseButtonProps
44
44
type ?: HTMLButtonProps [ 'type' ] ;
45
45
/** Custom react component for the link (can be used to inject react router Link). */
46
46
linkAs ?: 'a' | any ;
47
- /** Children */
48
- children ?: React . ReactNode ;
49
47
}
50
48
51
49
export interface ButtonRootProps extends BaseButtonProps {
You can’t perform that action at this time.
0 commit comments