Component
ListRow
A pressable row: hover surface, optional selected state, link or button by `href`.
import { ListRow } from '@loidolt/theme-svelte';
Example
Notes
selectedmaps toaria-currenton links andaria-pressedon buttons.- The row is transparent until hovered — it belongs in lists and rails, not as a standalone button.
Props
Generated from the component source, so it cannot drift from the implementation.
| Prop | Type | Default | Notes |
|---|---|---|---|
children required | Snippet | — | |
class | string | — | |
href | string | — | |
ref bindable | HTMLAnchorElement | HTMLButtonElement | null | null | |
selected | boolean | false | Highlighted as the current item: aria-current on links, aria-pressed on buttons. |
type | never | 'button' |
Plus the attributes of Omit<HTMLAnchorAttributes, 'class' | 'type'>andOmit<HTMLButtonAttributes, 'class'>, forwarded to the root element.