Skip to content

Box

概要

Box は最小のレイアウトラッパーです。既定では div を描画し、as prop で任意の HTML 要素に切り替えられます。余白、背景、境界線などを持つコンテナを組み立てる基点として使います。

Usage 使用例

基本

API Reference

Box Props

PropsTypeDefaultDescription
asstring"div"描画する HTML 要素を切り替えます
classstring追加の CSS クラスです
styleRecord<string, string> | stringインラインスタイルです
...restRecord<string, any>そのほかの HTML 属性をそのまま渡します

Mithril UI Kit Documentation