Skip to content

Commit 778bf27

Browse files
committed
docs: update switch.md table formatting
1 parent 206e9c0 commit 778bf27

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

docs/switch.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Inherits [View Props](view.md#props).
6161
If true the user won't be able to toggle the switch.
6262

6363
| Type | Default |
64-
| ---- | ------- |
64+
|------|---------|
6565
| bool | `false` |
6666

6767
---
@@ -71,7 +71,7 @@ If true the user won't be able to toggle the switch.
7171
On iOS, custom color for the background. This background color can be seen either when the switch value is `false` or when the switch is disabled (and the switch is translucent).
7272

7373
| Type |
74-
| ------------------ |
74+
|--------------------|
7575
| [color](colors.md) |
7676

7777
---
@@ -81,7 +81,7 @@ On iOS, custom color for the background. This background color can be seen eithe
8181
Invoked when the user tries to change the value of the switch. Receives the change event as an argument. If you want to only receive the new value, use `onValueChange` instead.
8282

8383
| Type |
84-
| -------- |
84+
|----------|
8585
| function |
8686

8787
---
@@ -91,7 +91,7 @@ Invoked when the user tries to change the value of the switch. Receives the chan
9191
Invoked when the user tries to change the value of the switch. Receives the new value as an argument. If you want to instead receive an event, use `onChange`.
9292

9393
| Type |
94-
| -------- |
94+
|----------|
9595
| function |
9696

9797
---
@@ -107,7 +107,7 @@ A ref setter that will be assigned an [element node](element-nodes) when mounted
107107
Color of the foreground switch grip. If this is set on iOS, the switch grip will lose its drop shadow.
108108

109109
| Type |
110-
| ------------------ |
110+
|--------------------|
111111
| [color](colors.md) |
112112

113113
---
@@ -117,7 +117,7 @@ Color of the foreground switch grip. If this is set on iOS, the switch grip will
117117
Thumb color when the switch is off. Overrides `thumbColor` for the unchecked state.
118118

119119
| Type |
120-
| ------------------ |
120+
|--------------------|
121121
| [color](colors.md) |
122122

123123
---
@@ -127,7 +127,7 @@ Thumb color when the switch is off. Overrides `thumbColor` for the unchecked sta
127127
Thumb color when the switch is on. Overrides `thumbColor` for the checked state.
128128

129129
| Type |
130-
| ------------------ |
130+
|--------------------|
131131
| [color](colors.md) |
132132

133133
---
@@ -136,8 +136,8 @@ Thumb color when the switch is on. Overrides `thumbColor` for the checked state.
136136

137137
Drawable resource name(s) to display as an icon inside the thumb. Accepts a `{false, true}` object (like `trackColor`) so each state can have a different icon. Omit a key to show no icon for that state. Requires Material Design 3 (MaterialSwitch).
138138

139-
| Type |
140-
| ------------------------------------------- |
139+
| Type |
140+
|---------------------------------------------------|
141141
| `{false?: string \| null, true?: string \| null}` |
142142

143143
---
@@ -147,7 +147,7 @@ Drawable resource name(s) to display as an icon inside the thumb. Accepts a `{fa
147147
Color tint applied to the thumb icon.
148148

149149
| Type |
150-
| ------------------ |
150+
|--------------------|
151151
| [color](colors.md) |
152152

153153
---
@@ -159,7 +159,7 @@ Custom colors for the switch track.
159159
_iOS_: When the switch value is `false`, the track shrinks into the border. If you want to change the color of the background exposed by the shrunken track, use [`ios_backgroundColor`](switch.md#ios_backgroundColor).
160160

161161
| Type |
162-
| ------------------------------------------------------------ |
162+
|--------------------------------------------------------------|
163163
| `md object: {false: [color](colors), true: [color](colors)}` |
164164

165165
---
@@ -169,5 +169,5 @@ _iOS_: When the switch value is `false`, the track shrinks into the border. If y
169169
The value of the switch. If true the switch will be turned on. Default value is false.
170170

171171
| Type |
172-
| ---- |
172+
|------|
173173
| bool |

0 commit comments

Comments
 (0)