@acusti/styling 中文文档教程

发布于 3 年前 浏览 12 项目主页 更新于 2 年前

@acusti/styling

最新版本依赖状态捆绑包大小downloads per month

导出 Style,这是一个呈现 CSS 样式字符串的 React 组件 作为可选指定的文档的 中的

还导出有用的 CSS 字符串文字,例如 SYSTEM_UI_FONT 可以 用作 font-family: ${SYSTEM_UI_FONT}; 以指定适当的 UI 当前操作系统和浏览器的字体。

@acusti/styling

latest versiondependencies statusbundle sizedownloads per month

Exports Style, which is a React component that renders a CSS style string as a <style> element in the <head> of the document optionally specified by props.ownerDocument. Keeps a per-document global registry of styles being rendered so that the same string of CSS will only be rendered as a single <style> element, no matter how many times the <Style> element with that string appears in the React component tree.

Also exports useful CSS string literals, such as SYSTEM_UI_FONT which can be used as font-family: ${SYSTEM_UI_FONT}; to specify the appropriate UI font for the current OS and browser.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文