Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

ListRow

A pressable row: hover surface, optional selected state, link or button by `href`.

import { ListRow } from '@loidolt/theme-svelte';

Example

Notes

  • selected maps to aria-current on links and aria-pressed on 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.

ListRow props
PropTypeDefaultNotes
children required Snippet—
class string—
href string—
ref bindableHTMLAnchorElement | HTMLButtonElement | nullnull
selected booleanfalseHighlighted 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.