styled-components-docs-zh icon indicating copy to clipboard operation
styled-components-docs-zh copied to clipboard

💅 styled-components 中文文档翻译 🏇持续施工中

styled-components 💅 中文文档翻译

Notice

This is not the official styled-components docs. I've been working on translating the official styled-components docs in Chinese.

官网地址:https://www.styled-components.com

官方文档:https://www.styled-components.com/docs

github地址:https://github.com/styled-components/styled-components

能力所限,已翻译部分可能仍有字词错误或语句不通顺的地方,欢迎有能力的同学帮助纠正.

目录

  • Basics 基本用法

    • Motivation 动机
    • Installation 安装
    • Getting Started 入门
    • Adapting based on props 基于属性的适配
    • Extending styles 样式继承
    • Styling any components 为任意组件添加样式
    • Passed props 属性传递
    • Coming from CSS
    • Attaching additional props 附加额外的属性
    • Animations 动画
    • React Native
  • Advanced 进阶用法

    • Theming 主题
    • Refs
    • Security 安全性
    • Existing CSS
    • Media Templates 媒体模板
    • Tagged Template Literals 标记模板字符串
    • Server Side Rendering 服务端渲染(v2+)
    • Referring to other components
    • Style Objects 样式对象
  • API Reference

    • Primary
    • Helpers
    • Test Utilities
    • Supported CSS
    • Flow
    • TypeScript
    • Previous APIs