Table
Simple table based on JSON data object.
Id | Name | Email |
---|
1 | Lorem Ipsum | lorem@email.com |
2 | Chuck Norris | ipsum@email.com |
3 | Ipsum Lorem | lorem@email.com |
Code
const tableData = [
{
id: 1,
name: "Lorem Ipsum",
email: "lorem@email.com",
},
{
id: 2,
name: "Chuck Norris",
email: "ipsum@email.com",
},
{
id: 3,
name: "Ipsum Lorem",
email: "lorem@email.com",
}
];
<!-- Astro -->
<Table data={tableData} />
<!-- Vue -->
<Table :data="tableData" />
Table
Name | Email |
---|
Lorem Ipsum | lorem@email.com |
Chuck Norris | ipsum@email.com |
Ipsum Lorem | lorem@email.com |
Code
const tableDataSecondary = [
{
name: "Lorem Ipsum",
email: "lorem@email.com",
},
{
name: "Chuck Norris",
email: "ipsum@email.com",
},
{
name: "Ipsum Lorem",
email: "lorem@email.com",
}
];
<Table data={tableDataSecondary} />