{# @description daisyUI's table: a keyboard-focusable, horizontally scrolling wrapper holding a
, named by its caption or an aria-label. #}
{# @prop caption:text | description:"Caption naming the scrolling region for assistive technology. Fill the caption slot instead for markup." #}
{# @prop size:select['xs','sm','md','lg','xl'] | description:"Table size." #}
{# @prop zebra:boolean | description:"Stripe alternating rows." #}
{# @prop pin-rows:boolean | description:"Keep the header row visible while scrolling. Has no effect without a ." #}
{# @prop pin-cols:boolean | description:"Keep the first column visible while scrolling. Has no effect without row header cells." #}
{# @prop content_class:text | description:"Extra classes added to the
." #}
{# @prop class:text | description:"Extra classes added to the scrolling wrapper." #}
{# @slot
Service
Status
Shortcut
Search
Online
Ctrl + K
— Header and body rows, with header cells given scope; a Status column with a dot beside its text and no label, and a Shortcut column with a key combination. #}
{# @slot:caption — Caption content in place of the attribute, naming the scrolling region for assistive technology. #}
{% comment %}
Caller duties: a caption or aria-label names the scroll region; pin-rows
needs a , pin-cols needs row headers. The wrapper is always a Tab
stop so keyboard users can scroll it.
{% endcomment %}
{% load daisy_cotton %}
{% unique_id "table" as caption_id %}