Skip to content

AbsoluteCenter

概要

AbsoluteCenter は親要素に対して絶対配置で中央寄せするユーティリティです。モーダル内のローディング表示やカード上のオーバーレイラベルなど、通常フローから独立した中央配置に向いています。

Usage 使用例

基本

API Reference

AbsoluteCenter Props

PropsTypeDefaultDescription
axis"horizontal" | "vertical" | "both""both"中央寄せする軸を指定します
asstring"div"描画要素を切り替えます
classstring追加クラスです
styleRecord<string, string> | stringインラインスタイルです

補足

親要素側に position: relative などの位置基準が必要です。

Mithril UI Kit Documentation