複数列
効果
列 1
こちらは列 1 のコンテンツです
こちらは列 1 のコンテンツです
列 2
こちらは列 2 のコンテンツです
こちらは列 2 のコンテンツです
列 3
こちらは列 3 のコンテンツです
こちらは列 3 のコンテンツです
<Columns>
<Column>
**列 1**
こちらは列 1 のコンテンツです
</Column>
<Column>
**列 2**
こちらは列 2 のコンテンツです
</Column>
<Column>
**列 3**
こちらは列 3 のコンテンツです
</Column>
</Columns>
幅の定義
1 列目
これは1列目の内容で、幅は20%です。
これは1列目の内容で、幅は20%です。
2 列目
これは2列目の内容で、幅は20%です。
これは2列目の内容で、幅は20%です。
3 列目
これは3列目の内容で、幅は300pxです。
これは3列目の内容で、幅は300pxです。
<Columns>
<Column width="20%">
**1 列目**
これは1列目の内容で、幅は20%です。
</Column>
<Column width="20%">
**2 列目**
これは2列目の内容で、幅は20%です。
</Column>
<Column width={300}>
**3 列目**
これは3列目の内容で、幅は300pxです。
</Column>
</Columns>
class
属性を使用したTailwind CSSスタイルの適用
Columns
と Column
の両方のコンポーネントで、class
属性を使用してTailwind CSSクラスを追加できます。<Columns>
<Column class="bg-gray-100 p-3 rounded">
<p class="text-lg font-bold text-pink-500">
Photographs of scenery
</p>
This photograph was captured by André Cook

</Column>
<Column class="bg-gray-100 p-3 rounded">
<p class="text-lg font-bold text-orange-500">
Photographs of scenery
</p>
This photograph was captured by André Cook

</Column>
</Columns>
style
を使用したスタイルの直接定義
<Columns>
<Column style="background-color: #f0f0f0; padding: 10px;">
<p class="text-lg font-bold text-pink-500">
Photographs of scenery
</p>
This photograph was captured by André Cook

</Column>
<Column style="background-color: #f0f0f0; padding: 10px;">
<p class="text-lg font-bold text-orange-500">
Photographs of scenery
</p>
This photograph was captured by André Cook

</Column>
</Columns>
パラメータ説明
Column
width
number
可選
class
string
可選
style
string
可選
更新日時 2024-06-27 10:24:26