-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1425 from Infineon/1416-new-component-segmented-c…
…ontrols New component - Segmented controls
- Loading branch information
Showing
36 changed files
with
2,012 additions
and
1,405 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
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
17 changes: 17 additions & 0 deletions
17
.../wrapper-components/react-javascript/src/components/SegmentedControl/SegmentedControl.jsx
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,17 @@ | ||
import { IfxSegmentedControl, IfxSegment } from '@infineon/infineon-design-system-react'; | ||
|
||
function SegmentedControls() { | ||
return ( | ||
<div> | ||
<IfxSegmentedControl caption='Caption text to describe the controls' label='Group Label' size='regular'> | ||
<IfxSegment selected={true} icon='star16' value='value1'> Label </IfxSegment> | ||
<IfxSegment icon='star16' value='value2'> Label </IfxSegment> | ||
<IfxSegment icon='star16' value='value3'> Label </IfxSegment> | ||
<IfxSegment icon='star16' value='value4'> Label </IfxSegment> | ||
</IfxSegmentedControl> | ||
</div> | ||
) | ||
} | ||
|
||
export default SegmentedControls; | ||
|
Oops, something went wrong.