Usage
TheVTable component is a wrapper for the standard HTML <table> element with Vuetify theming support.
Fixed Header
Create a table with a fixed header and scrollable body:Density
Adjust the row spacing with thedensity prop:
Striped Rows
Alternate row colors for better readability:Hover Effect
Highlight rows on hover:Props
Fixes the table header to the top while scrolling
Fixes the table footer to the bottom while scrolling
Sets the height of the table. Required for fixed header/footer functionality
Adds a hover effect to table rows
Applies striped background to alternating rows. Use ‘even’ or ‘odd’ to specify which rows
Adjusts the vertical spacing within the table
Specify a theme for this component and all of its children
Specify a custom tag used on the root element
Slots
The default slot for table content (wraps in table element automatically)
Slot for content above the table
Slot for content below the table
Slot to replace the default table wrapper. Use this for complete control over the table structure
When using
fixedHeader or fixedFooter, you must also specify the height prop for proper functionality.