docs(data-table): add tall example, skeleton sizes

This commit is contained in:
Eric Liu 2020-10-16 11:29:23 -07:00
commit 964a0c9f75

View file

@ -168,6 +168,61 @@
]}" ]}"
/> />
### Tall rows
<DataTable size="tall"
headers="{[
{ key: "name", value: "Name" },
{ key: "protocol", value: "Protocol" },
{ key: "port", value: "Port" },
{ key: "rule", value: "Rule" }
]}"
rows="{[
{
id: "a",
name: "Load Balancer 3",
protocol: "HTTP",
port: 3000,
rule: "Round robin"
},
{
id: "b",
name: "Load Balancer 1",
protocol: "HTTP",
port: 443,
rule: "Round robin"
},
{
id: "c",
name: "Load Balancer 2",
protocol: "HTTP",
port: 80,
rule: "DNS delegation"
},
{
id: "d",
name: "Load Balancer 6",
protocol: "HTTP",
port: 3000,
rule: "Round robin"
},
{
id: "e",
name: "Load Balancer 4",
protocol: "HTTP",
port: 443,
rule: "Round robin"
},
{
id: "f",
name: "Load Balancer 5",
protocol: "HTTP",
port: 80,
rule: "DNS delegation"
},
]}"
/>
### Short rows ### Short rows
<DataTable size="short" <DataTable size="short"
@ -343,4 +398,16 @@
### Skeleton without header, toolbar ### Skeleton without header, toolbar
<DataTableSkeleton showHeader={false} showToolbar={false} /> <DataTableSkeleton showHeader={false} showToolbar={false} />
### Skeleton (tall size)
<DataTableSkeleton showHeader={false} showToolbar={false} size="tall" />
### Skeleton (short size)
<DataTableSkeleton showHeader={false} showToolbar={false} size="short" />
### Skeleton (compact size)
<DataTableSkeleton showHeader={false} showToolbar={false} size="compact" />