Shadix.Components.Table (shadix v0.0.1)

Copy Markdown View Source

A responsive table component, translated from shadcn/ui.

Provides table/1 (wrapped in a scroll container) along with table_header/1, table_body/1, table_footer/1, table_row/1, table_head/1, table_cell/1, and table_caption/1.

Summary

Functions

table(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

table_body(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

table_caption(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

table_cell(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["colspan", "rowspan", "headers"].

Slots

  • inner_block (required)

table_footer(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

table_head(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["colspan", "rowspan", "scope", "abbr"].

Slots

  • inner_block (required)

table_header(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

table_row(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["data-state"].

Slots

  • inner_block (required)