diff --git a/docs/guide/styled.md b/docs/guide/styled.md index 4e9b771c..44e5ca63 100644 --- a/docs/guide/styled.md +++ b/docs/guide/styled.md @@ -28,9 +28,9 @@ const StyledButton = styled(Button)` `; const App = () => { - const [apperance] = useState('light'); + const [appearance] = useState('light'); return ( - + Click me ); diff --git a/docs/guide/switch-theme.md b/docs/guide/switch-theme.md index 1ce7096f..3951e9b4 100644 --- a/docs/guide/switch-theme.md +++ b/docs/guide/switch-theme.md @@ -14,7 +14,7 @@ demo: ## 1. 亮暗色主题切换 -通过在容器组件 [ThemeProvider](/usage/theme-provider) 上修改 `apperance` props,即可实现主题切换,这是也是动态主题最简单的使用方式。 +通过在容器组件 [ThemeProvider](/usage/theme-provider) 上修改 `appearance` props,即可实现主题切换,这是也是动态主题最简单的使用方式。 ```tsx | pure import { ThemeProvider } from 'antd-style'; @@ -22,7 +22,7 @@ import { ThemeProvider } from 'antd-style'; export default () => { return ( // 自动变为暗色模式 - + );