docs: add screenshots of FAB, Paper, ProgressBar and Switch components (#227)
BIN
docs/assets/screenshots/fab.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
docs/assets/screenshots/paper.1_2.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
docs/assets/screenshots/paper.4_6.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
docs/assets/screenshots/paper.9_12.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
docs/assets/screenshots/progress-bar.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
docs/assets/screenshots/switch.android.disabled.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
docs/assets/screenshots/switch.android.enabled.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
docs/assets/screenshots/switch.ios.disabled.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
docs/assets/screenshots/switch.ios.enabled.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 = () => (
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 = () => (
|
||||
|
||||
@@ -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 {
|
||||
|
||||