Design

WARNING

These components do not provide any keyboard functionality or accessibility features. These needs to applied based on the usecase.

Examples

FeatherList

Slots

  • default - place ListItem, ListSwitch, ListHeader or ListSeparator here.

ListItem

Creates a styled list item. Can be used to create an interactive list (li > a, default) or a static list (li, see as-li prop).

Props

NameDescriptionTypeRequiredDefault
asLiwhen true will not render the anchor tag. Use with caution as you will not be responsible for navigationBooleanfalsefalse
disabledwhen true will render disabled itemBooleanfalsefalse
selectedwhen true will style the item in the Feather selected stateBooleanfalsefalse
highlightedwhen true will highligh the item. This is mainly used for keyboard navigation. (See autocomplete for example)Booleanfalsefalse

Slots

  • default - main content of the item
  • icon - left aligned icons should be placed here
  • post - content to appear fixed to the end of the item

ListSwitch

Props

NameDescriptionTypeRequiredDefault
disabledwhen true will render disabled itemBooleanfalsefalse
modelValuewhen true, switch will be selectedBooleanfalsefalse

Slots

  • default - main content of the item
  • icon - left aligned icons should be placed here

Events

  • update:modelValue - called when modelValue is updated

ListHeader

A styled header to be used in a list.

Slots

  • default - main content of the item

ListSeparator

Used to provide separation in a list.