Angular ユーティリティライブラリ | ng-hub-ui-utils

再利用可能な UI コンポーネント間で共有される、パイプ、フォーカス管理、オーバーレイ、トランジション、翻訳ヘルパーを備えた Angular ユーティリティライブラリ。

スタイル

CSS 変数

19 個の CSS 変数であらゆるピクセルをテーマ設定。:root で上書きするか、ラッパーにスコープを限定できます。

Overlay & tooltip

Design tokens read by this component. Override them on the host element (or any ancestor) to customize; every default falls back to the ng-hub-ui-ds layer.

変数デフォルト説明
--hub-overlay-backdrop-zindexcalc(var(--hub-sys-zindex-dropdown, 1000) - 1)number Overlay backdrop z index
--hub-overlay-bgvar(--hub-sys-surface-elevated, #f8f9fa)color Overlay bg
--hub-overlay-border-radiusvar(--hub-sys-radius-sm, 0.25rem)length Overlay border radius
--hub-overlay-shadowvar(--hub-sys-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15))shadow Overlay shadow
--hub-overlay-zindexvar(--hub-sys-zindex-dropdown, 1000)number Overlay z index
--hub-tooltip-bgvar(--hub-ref-color-black, #000)color ツールチップの背景色。
--hub-tooltip-border-radiusvar(--hub-sys-radius-md, 0.375rem)length ツールチップの角丸半径。
--hub-tooltip-colorvar(--hub-ref-color-white, #fff)color ツールチップのテキスト色。
--hub-tooltip-font-familyvar(--hub-ref-font-family-base, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif)string Tooltip font family
--hub-tooltip-font-sizevar(--hub-ref-font-size-sm, 0.875rem)length ツールチップテキストのフォントサイズ。
--hub-tooltip-font-weightvar(--hub-ref-font-weight-base, 400)number Tooltip font weight
--hub-tooltip-line-heightvar(--hub-ref-line-height-base, 1.5)number テキストが折り返されるまでの最大幅。
--hub-tooltip-max-width200pxlength Tooltip max width
--hub-tooltip-opacity0.9number 表示中のツールチップの不透明度。
--hub-tooltip-padding-xvar(--hub-ref-space-2, 0.5rem)length ツールチップ内の水平パディング。
--hub-tooltip-padding-yvar(--hub-ref-space-1, 0.25rem)length ツールチップ内の垂直パディング。
--hub-tooltip-shadownoneshadow Tooltip box shadow
--hub-tooltip-transition-duration0.15stransition フェードイン/アウトの時間。
--hub-tooltip-zindexvar(--hub-sys-zindex-tooltip, 1080)number ツールチップ要素の重なり順。