导入小部分语义的方法ui?

Way to import small parts of semantic ui?

我想使用 semantic-uihttps://semantic-ui.com/modules/sticky.html

中的特定模块

假设我也主要使用其他框架(例如bootstrap)。 我不想为了我需要的一个模块而包含整个 semantic-ui

有没有办法从 semantic-ui 中仅导入(包括..)我需要的特定模块?

只需包含特定组件的 .css 文件和 .js(如果可用)文件。这是一个带有 CDN 的示例:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/components/sticky.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/components/sticky.js" ></script>

您可以在 dist/components/ folder, for more information about semantic-ui installation see Semantic-UI on GitHub

中找到所有组件