Multiple Columns
Example
Column 1
This is the content of column 1
This is the content of column 1
Column 2
This is the content of column 2
This is the content of column 2
Column 3
This is the content of column 3
This is the content of column 3
<Columns>
<Column>
**Column 1**
This is the content of column 1
</Column>
<Column>
**Column 2**
This is the content of column 2
</Column>
<Column>
**Column 3**
This is the content of column 3
</Column>
</Columns>
Defining Width
Column 1
This is the content of the first column, with a width of 20%.
This is the content of the first column, with a width of 20%.
Column 2
This is the content of the second column, with a width of 20%.
This is the content of the second column, with a width of 20%.
Column 3
This is the content of the third column, with a width of 300px.
This is the content of the third column, with a width of 300px.
<Columns>
<Column width="20%">
**Column 1**
This is the content of the first column, with a width of 20%.
</Column>
<Column width="20%">
**Column 2**
This is the content of the second column, with a width of 20%.
</Column>
<Column width={300}>
**Column 3**
This is the content of the third column, with a width of 300px.
</Column>
</Columns>
Using Tailwind CSS Styles with the class
Attribute
Columns
and Column
components can use the class
attribute to add Tailwind CSS classes.<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>
Defining Styles Directly with 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>
Parameter Description
Column
width
number
optional
class
string
optional
style
string
optional