-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Grid): add inverted prop and usage example to docs (#1677)
* add inverted prop to Grid, add inverted Grid example * add test for inverted prop, move example position
- Loading branch information
1 parent
f05ab54
commit b2eaa7a
Showing
5 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
docs/app/Examples/collections/Grid/Variations/GridExampleInverted.js
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 { Grid, Segment } from 'semantic-ui-react' | ||
|
||
const GridExampleInverted = () => ( | ||
<Grid columns='equal' divided inverted padded> | ||
<Grid.Row color='black' textAlign='center'> | ||
<Grid.Column> | ||
<Segment color='black' inverted >1</Segment> | ||
</Grid.Column> | ||
<Grid.Column> | ||
<Segment color='black' inverted>2</Segment> | ||
</Grid.Column> | ||
<Grid.Column> | ||
<Segment color='black' inverted>3</Segment> | ||
</Grid.Column> | ||
</Grid.Row> | ||
</Grid> | ||
) | ||
|
||
export default GridExampleInverted |
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