-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make SplitButton display simple button when no options Signed-off-by: Peter Fitzgibbons <peter.fitzgibbons@gmail.com> * Changelog Fix Split Button Signed-off-by: Peter Fitzgibbons <peter.fitzgibbons@gmail.com> * Remove hairline if simple-button displayed Signed-off-by: Peter Fitzgibbons <peter.fitzgibbons@gmail.com> --------- Signed-off-by: Peter Fitzgibbons <peter.fitzgibbons@gmail.com> Signed-off-by: Miki <miki@amazon.com> Co-authored-by: Miki <miki@amazon.com>
- Loading branch information
1 parent
78c7a21
commit bae0acb
Showing
9 changed files
with
402 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* copyright opensearch contributors | ||
* spdx-license-identifier: apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import { OuiSplitButton } from '../../../../src/components'; | ||
|
||
export default () => { | ||
const primaryClick = () => console.log('Primary clicked'); | ||
|
||
return ( | ||
<OuiSplitButton options={[]} initiallyOpen onClick={primaryClick}> | ||
Basic Split Button | ||
</OuiSplitButton> | ||
); | ||
}; |
Oops, something went wrong.