generated from react-component/footer
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support
name
prop to enable grouping (#284)
* feat: support prop to enable grouping * add test
- Loading branch information
1 parent
6bedd52
commit daedf88
Showing
4 changed files
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Segmented from 'rc-segmented'; | ||
import React from 'react'; | ||
import '../../assets/style.less'; | ||
|
||
export default function App() { | ||
return ( | ||
<div> | ||
<div className="wrapper"> | ||
<Segmented | ||
name="group" | ||
options={['iOS', 'Android', 'Web']} | ||
onChange={(value) => console.log(value, typeof value)} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
|
@@ -32,3 +32,7 @@ nav: | |
## rtl | ||
|
||
<code src="./demo/rtl.tsx"></code> | ||
|
||
## name | ||
|
||
<code src="./demo/name.tsx"></code> |
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