Browse Source

docs(switch): Update switch docs (#107)

songjianet 4 years ago
parent
commit
673611eb02
2 changed files with 3 additions and 3 deletions
  1. 2 2
      content/input/switch/index-en-US.md
  2. 1 1
      content/input/switch/index.md

+ 2 - 2
content/input/switch/index-en-US.md

@@ -100,7 +100,7 @@ import { Switch } from '@douyinfe/semi-ui';
 )
 ```
 
-Compared to setting the embedded text through chekedText and uncheckedText, we recommend placing the text description outside the Switch
+Compared to setting the embedded text through checkedText and uncheckedText, we recommend placing the text description outside the Switch
 ```jsx live=true
 import React, { useState } from 'react';
 import { Switch, Typography } from '@douyinfe/semi-ui';
@@ -119,7 +119,7 @@ import { Switch, Typography } from '@douyinfe/semi-ui';
 
 ### Controlled component
 
-Whether the component is selected depends entirely on the incoming checkced value, used with `onChange`
+Whether the component is selected depends entirely on the incoming checked value, used with `onChange`
 
 ```jsx live=true
 import React from 'react';

+ 1 - 1
content/input/switch/index.md

@@ -120,7 +120,7 @@ import { Switch, Typography } from '@douyinfe/semi-ui';
 
 ### 受控组件
 
-组件是否选中完全取决于传入的 checkced 值,配合 onChange 回调函数使用
+组件是否选中完全取决于传入的 checked 值,配合 onChange 回调函数使用
 
 ```jsx live=true hideInDSM
 import React from 'react';