list-grid
UI プリミティブ コンポーネントにはなれない形。中身は呼び出す側しか知らないからです。カード、データのグリッド、メニュー、そしてシェル自身の枠組み。
データテーブルの本当の語彙です。列を決めるのはカードで一度きり、行はセルを選ぶだけです。
どの例も実際に動きますが、リンクはどこにも移動しません。 HTML にはコピーできるマークアップがあります。
<div rst-box-head >
<h2 id ="orders-title" >注文</h2 >
</div >
<div rst-card role ="table" aria-labelledby ="orders-title" style ="--rst-cols: 2fr 110px var(--rst-col-menu)" >
<div rst-lrow ="head" role ="row" >
<span role ="columnheader" >注文</span >
<span class ="rst-m-hide" role ="columnheader" >状態</span >
<span role ="columnheader" ><span class ="rst-sr-only" >操作</span ></span >
</div >
<div rst-lrow role ="row" >
<span role ="rowheader" ><a class ="rst-nm" href ="/orders/AB3PX" ><bdi >Grace Hopper</bdi >
<small >AB3PX · <bdi >grace@example.com</bdi ></small >
</a ></span >
<span class ="rst-m-hide rst-cell-mut" role ="cell" >支払い済み</span >
<span role ="cell" >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="Grace Hopper の操作" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/orders/AB3PX" >表示</a >
<hr >
<a class ="rst-danger" href ="/orders/AB3PX/refund" >注文を返金…</a >
</div >
</details >
</span >
</div >
<p rst-no-match role ="row" >
<span role ="cell" aria-colspan ="3" >該当する注文はありません。<a href ="/orders" >絞り込みを解除</a ></span >
</p >
</div >
<p rst-count-line >
<strong >412</strong >件中 <strong >1–20</strong >件を表示</p >
アプリの中なら、これは /orders, /orders/AB3PX, /orders/AB3PX/refund に届きます。ここではリンクもフォームもどこにも行きません。