# Table ## Examples ### Default ```html
NameEmailRole
John Doejohn@example.comAdmin
Jane Roejane@example.comEditor
Total: 2
``` ### WithHeaderAndActions ```html
NameEmailRoleActions
John Doejohn@example.comAdmin
Jane Roejane@example.comEditor
``` ### WithCheckboxes ```html
NameEmailRoleActions
John Doejohn@example.comAdminEdit | Delete
Jane Roejane@example.comEditorEdit | Delete
``` ### CellAlignments ```html
Left Aligned Center Aligned Right Aligned Default (Left)
Left aligned text Centered text Right aligned text Default alignment
Another left Another center Another right Another default
Numbers: 123 Numbers: 456 Numbers: 789 Numbers: 000
``` ### MixedAlignments ```html
Product Status Price Quantity Total
Premium Widget In Stock $29.99 5 $149.95
Basic Widget Low Stock $19.99 2 $39.98
Deluxe Widget Out of Stock $49.99 0 $0.00
Grand Total: 7 $189.93
``` ### Sortable ```html
Name Email Role Join Date
Alice Johnsonalice@example.comUser2023-01-15
Bob Smithbob@example.comUser2023-02-20
John Doejohn@example.comAdmin2022-12-01
Jane Roejane@example.comEditor2023-03-10
``` ### SortableWithMixedColumns ```html
ID Name Email Status Score
1Alice Johnsonalice@example.comActive95
2Bob Smithbob@example.comPending87
3John Doejohn@example.comActive92
4Jane Roejane@example.comInactive78
``` ### SortableWithEventListener ```html { const handleSort = (event: CustomEvent) => { console.log('Sort event received:', event.detail); // Here you would implement your actual sorting logic // The component only dispatches the event - you need to sort your data }; return html`
Name Email Role
Alice Johnsonalice@example.comUser
Bob Smithbob@example.comUser
John Doejohn@example.comAdmin
Jane Roejane@example.comEditor
`; } ``` ### SortableWithAccessibility ```html

Accessibility Features:

Product Name Price Stock Category
Premium Widget$29.9915Electronics
Basic Widget$19.998Electronics
Deluxe Widget$49.993Premium
Standard Widget$24.9912Standard
``` ### WithCaption ```html
User Management
NameEmailRole
John Doejohn@example.comAdmin
Jane Roejane@example.comEditor
``` ### WithCaptionAndButton ```html
User Management Add User
NameEmailRoleActions
John Doejohn@example.comAdmin
Jane Roejane@example.comEditor
```