Skip to content

Commit

Permalink
feat(EuiSuperUpdateButton): support custom button labels via `childre…
Browse files Browse the repository at this point in the history
…n` prop (#7576)

Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com>
  • Loading branch information
tkajtoch and cee-chen authored Mar 18, 2024
1 parent 53c140e commit 9f9a6b2
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 619 deletions.
1 change: 1 addition & 0 deletions changelogs/upcoming/7576.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated `EuiSuperUpdateButton` to support custom button text via an optional `children` prop
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

0 comments on commit 9f9a6b2

Please sign in to comment.