Skip to content

Commit 206e9c0

Browse files
committed
docs: update switch.md after adding Material Design 3 support for Switch
1 parent 364ffaf commit 206e9c0

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

docs/switch.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,46 @@ Color of the foreground switch grip. If this is set on iOS, the switch grip will
112112

113113
---
114114

115+
### `thumbColorForFalse` <div className="label android">Android</div>
116+
117+
Thumb color when the switch is off. Overrides `thumbColor` for the unchecked state.
118+
119+
| Type |
120+
| ------------------ |
121+
| [color](colors.md) |
122+
123+
---
124+
125+
### `thumbColorForTrue` <div className="label android">Android</div>
126+
127+
Thumb color when the switch is on. Overrides `thumbColor` for the checked state.
128+
129+
| Type |
130+
| ------------------ |
131+
| [color](colors.md) |
132+
133+
---
134+
135+
### `thumbIcon` <div className="label android">Android</div>
136+
137+
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).
138+
139+
| Type |
140+
| ------------------------------------------- |
141+
| `{false?: string \| null, true?: string \| null}` |
142+
143+
---
144+
145+
### `thumbIconTint` <div className="label android">Android</div>
146+
147+
Color tint applied to the thumb icon.
148+
149+
| Type |
150+
| ------------------ |
151+
| [color](colors.md) |
152+
153+
---
154+
115155
### `trackColor`
116156

117157
Custom colors for the switch track.

0 commit comments

Comments
 (0)