@gemeente-denhaag/divider

中文文档
3.1.3发布于 2026/09/23EUPL-1.2TypeScriptESM + CJS构建来源已验证近 30 天下载 2841

A Divider component

原始使用文档
文档目录14 节
  1. When to use
  2. Alternatives and related components
  3. Anatomy
  4. (Interactive) states
  5. Design properties
  6. Color
  7. Structure
  8. Accessibility
  9. Content guidelines
  10. Best practices
  11. Divider with subheader
  12. Inset dividers
  13. Full-bleed dividers
  14. References

Divider

npm version

A divider is a thin line that groups content in lists and layouts. They separate content into clear groups.

When to use

Use a divider when you want to make a distinction between sections of content or where a line is necessary to denote sections of a page to better organize information on a page. Use the vertical divider to form or separate different groups, such as a group of headings in a menu. A vertical divider will automatically swap to a horizontal divider at mobile resolutions.

Anatomy

The divider consists of:

  1. Line: the separator

(Interactive) states

None.

Design properties

Color

  • Line: fill color Grey/2

Structure

  • Line: height 1px

Dividers are placed along the bottom edge of the content tiles, independent of the grid.

Accessibility

[technical requirements]

Content guidelines

Best practices

Divider with subheader

When using a divider with a subheader, place the divider above the subheader to reinforce the relationship between the subheader and the content.

Inset dividers

Inset dividers should:

  • Be used to separate related content.
  • Be used judicious to demarcate major sections of content
  • Be used in conjunction with anchoring elements such as avatars

And should:

  • Not used for too many elements on one page because a heavy use of dividers can lead to visual noise and dilute their impact
  • Not be used if such strong divisions are not required. Consider using white space, subheaders, or inset dividers

Full-bleed dividers

Full-bleed dividers should:

  • Be used to separate distinct content sections (e.g., biographic details from contact information) or distinct content elements (e.g., list items) in both lists and page layouts

And should:

  • Not be overused because it creates visual noise and ultimately diminishes the meaning of the dividers

References

版本与发布记录

@gemeente-denhaag/divider 共发布 436 个版本,首次发布于 2021/03/20;过去 12 个月发布了 6 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.1.3latest2026/09/231 个月前
3.1.22026/08/272 个月前
3.1.12026/07/273 个月前
3.1.02026/06/294 个月前
3.0.32026/06/115 个月前
3.0.22025/12/0411 个月前

关于 @gemeente-denhaag/divider 的常见问题

@gemeente-denhaag/divider 是什么?

A Divider component

如何安装 @gemeente-denhaag/divider?

在项目目录运行 npm install @gemeente-denhaag/divider,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(18 || 19)、react-dom(18 || 19)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@gemeente-denhaag/divider 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@gemeente-denhaag/divider 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@gemeente-denhaag/divider 可以商用吗?

@gemeente-denhaag/divider 使用 EUPL-1.2 许可。声明的许可为 EUPL-1.2,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@gemeente-denhaag/divider 的下载量有多少?

根据 npm 官方下载统计,@gemeente-denhaag/divider 在 2026/10/16 – 2026/11/14 这 30 天内被下载 2,841 次,日均约 95 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@gemeente-denhaag/divider 还在维护吗?

最新版本 3.1.3 发布于 2026/09/23(1 个月前);至今共发布 436 个版本,其中过去 12 个月发布了 6 个;首次发布于 2021/03/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。