Pular para o conteúdo

Data Table

Este conteúdo não está disponível em sua língua ainda.

The DataTable component displays structured data in rows and columns.
It is ideal for dashboards, reports, and any interface requiring organized tabular data.

  • Structured layout: Display rows and columns with consistent formatting.
  • Customizable content: Supports text, numbers, and interactive elements.
  • Responsive design: Works across screen sizes.
  • Easy integration: Bind your data array directly to the component.
idlabel
0test-0
1test-1
2test-2
3test-3
4test-4
5test-5
6test-6
7test-7
8test-8
9test-9
PropTypeDefaultDescription
dataarray[]Array of objects to display in the table. Each object represents a row.
columnsarrayOptionalOptional column definitions for custom headers, keys, or formatting.
sortablebooleanfalseEnable sorting functionality on table columns.
stylestring""Inline styles for layout or table container.
  • Provide unique keys in your data rows (e.g., id) for performance.
  • Limit the number of columns for readability.
  • Combine with pagination or virtual scrolling for large datasets.
  • Include clear column headers to improve usability and accessibility.
  • Use consistent cell formatting for numbers, dates, or text.