-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(MenuToggle/Select): add status (#10209)
* feat(MenuToggle/Select): add status * pr feedback * update menutoggle example * update example desc * mark prop as beta
- Loading branch information
Showing
6 changed files
with
198 additions
and
24 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
20 changes: 20 additions & 0 deletions
20
packages/react-core/src/components/MenuToggle/examples/MenuToggleStatus.tsx
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,20 @@ | ||
import React from 'react'; | ||
import { MenuToggle, HelperText, HelperTextItem } from '@patternfly/react-core'; | ||
|
||
export const MenuToggleStatus: React.FunctionComponent = () => ( | ||
<React.Fragment> | ||
<MenuToggle status="success">Success</MenuToggle> | ||
<br /> | ||
<br /> | ||
<MenuToggle status="warning">Warning</MenuToggle> | ||
<HelperText> | ||
<HelperTextItem variant="warning">Warning text that explains the issue.</HelperTextItem> | ||
</HelperText> | ||
<br /> | ||
<br /> | ||
<MenuToggle status="danger">Danger</MenuToggle> | ||
<HelperText> | ||
<HelperTextItem variant="error">Danger text that explains the issue.</HelperTextItem> | ||
</HelperText> | ||
</React.Fragment> | ||
); |
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
Oops, something went wrong.