Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(EuiSuperUpdateButton): support custom button labels via children prop #7576

Merged
1 change: 1 addition & 0 deletions changelogs/upcoming/7576.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added support for custom `EuiSuperUpdateButton` labels by passing an optional `children` prop
tkajtoch marked this conversation as resolved.
Show resolved Hide resolved
5 changes: 5 additions & 0 deletions src-docs/src/views/super_date_picker/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export const superUpdateButtonConfig = () => {

propsToUse.onClick = simulateFunction(propsToUse.onClick, true);

propsToUse.children = {
...propsToUse.children,
type: PropTypes.String,
};

return {
config: {
componentName: 'EuiSuperUpdateButton',
Expand Down
Loading
Loading