docs: add screenshots of FAB, Paper, ProgressBar and Switch components (#227)

This commit is contained in:
K. P. Sroka
2018-02-05 13:08:04 +01:00
committed by Satyajit Sahoo
parent 1ddd529313
commit b9cdbe43fe
14 changed files with 51 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -3,14 +3,28 @@
margin: 0 -4px;
}
.screenshots > img {
width: 280px;
.screenshots img {
max-width: 280px;
height: auto;
}
.screenshots > div {
display: inline-flex;
flex-direction: column;
}
.screenshots > * {
margin: 4px;
}
.screenshots span {
color: #616161;
font-size: 13px;
line-height: 24px;
}
@media (min-width: 1100px) {
.screenshots > img {
width: 240px;
.screenshots img {
max-width: 240px;
}
}

View File

@@ -45,6 +45,10 @@ type Props = {
/**
* A floating action button represents the primary action in an application.
*
* <div class="screenshots">
* <img src="screenshots/fab.png" />
* </div>
*
* ## Usage
* ```js
* const MyComponent = () => (

View File

@@ -22,6 +22,12 @@ type Props = {
/**
* Paper is a basic container that can give depth to the page.
*
* <div class="screenshots">
* <img src="screenshots/paper.1_2.png" />
* <img src="screenshots/paper.4_6.png" />
* <img src="screenshots/paper.9_12.png" />
* </div>
*
* ## Usage
* ```js
* const MyComponent = () => (
@@ -30,7 +36,6 @@ type Props = {
* </Paper>
* );
*
*
* const styles = StyleSheet.create({
* paper: {
* padding: 8,

View File

@@ -35,6 +35,10 @@ const ProgressBarComponent = Platform.select({
/**
* Progress bar is an indicator used to present some activity in the app.
*
* <div class="screenshots">
* <img src="screenshots/progress-bar.png" />
* </div>
*
* ## Usage
* ```js
* const MyComponent = () => (

View File

@@ -34,6 +34,25 @@ type Props = {
/**
* Switch is a visual toggle between two mutually exclusive states—on and off.
*
* <div class="screenshots">
* <div>
* <img src="screenshots/switch.android.enabled.png" />
* <span>Android (enabled)</span>
* </div>
* <div>
* <img src="screenshots/switch.android.disabled.png" />
* <span>Android (disabled)</span>
* </div>
* <div>
* <img src="screenshots/switch.ios.enabled.png" />
* <span>iOS (enabled)</span>
* </div>
* <div>
* <img src="screenshots/switch.ios.disabled.png" />
* <span>iOS (disabled)</span>
* </div>
* </div>
*
* ## Usage
* ```js
* export default class MyComponent extends Component {