BlogPlaygroundOne

VListItem API

ads via vuetify

Props
name
type
default
boolean
undefined

Controls the active state of the item. This is typically used to highlight the component.

string
undefined

The class applied to the component when it matches the current route. Find more information about the active-class prop on the vue-router documentation.

string
undefined

Deprecated, use color instead.

string
undefined

Appends a v-avatar component after default content in the append slot.

  | string
  | (new () => any)
  | FunctionalComponent
  | (string | [string, number])[]
undefined

Creates a v-icon component after default content in the append slot.

string
undefined

Sets the color of component when not focused.

string | number | boolean
false

Applies utility border classes to the component. To use it, you need to omit the border- prefix, (for example use border-sm as border="sm"). Find a list of the built-in border classes on the borders page.

string
undefined

Applies specified color to the control when in an active state or input-value is true - supports utility colors (for example success or purple) or css color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page,

'default' | 'comfortable' | 'compact'
'default'

Adjusts the vertical height used by the component.

boolean
false

Removes the ability to click or target the component.

string | number
undefined

Designates an elevation applied to the component between 0 and 5. You can find more information on the elevation page.

boolean
false

Exactly match the link. Without this, ‘/’ will match every route. You can find more information about the exact prop on the vue-router documentation.

string | number
undefined

Sets the height for the component.

string
undefined

Designates the component as anchor and applies the href attribute.

number
undefined

The index of the item within the list. Used internally for keyboard navigation and selection.

false | 'one' | 'two' | 'three'
false

The line declaration specifies the minimum height of the item and can also be controlled from v-list with the same prop.

boolean
undefined

Designates that the component is a link. This is automatic when using the href or to prop.

string | number
undefined

Sets the maximum height for the component.

string | number
undefined

Sets the maximum width for the component.

string | number
undefined

Sets the minimum height for the component.

string | number
undefined

Sets the minimum width for the component.

boolean
false

Reduces the width v-list-item takes up as well as adding a border radius.

string
undefined

Prepends a v-avatar component in the prepend slot before default content.

string | number
undefined

Sets the horizontal spacing between prepend slot and the main content. Also affects indent to ensure expected alignment of group children.

  | string
  | (new () => any)
  | FunctionalComponent
  | (string | [string, number])[]
undefined

Creates a v-icon component in the prepend slot before default content.

boolean
false

Setting replace prop will call router.replace() instead of router.push() when clicked, so the navigation will not leave a history record. You can find more information about the replace prop on the vue-router documentation.

boolean | { class: string; keys: string[] }
true

Applies the v-ripple directive.

string | number | boolean
undefined

Designates the border-radius applied to the component. This can be 0, xs, sm, true, lg, xl, pill, circle, and shaped. Find more information on available border radius classes on the Border Radius page.

boolean
false

Reduces horizontal spacing for badges, icons, tooltips, and avatars to create a more compact visual representation.

string | number | boolean
undefined

Specify a subtitle text for the component.

string | number
undefined

Controls the tabindex of the list item. When set, overrides the default tabindex behavior. Automatically set to -1 by VList when using navigationStrategy="track" to prevent Tab key navigation into items.

string | (new () => any) | FunctionalComponent
'div'

Specify a custom tag used on the root element.

string
undefined

Specify a theme for this component and all of its children.

boolean
false

Removes any applied border-radius from the component.

string | number | boolean
undefined

Generates a v-list-item-title component with the supplied value. Note that this overrides the native title attribute, that must be set with v-bind:title.attr instead.

string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric
undefined

Denotes the target route of the link. You can find more information about the to prop on the vue-router documentation.

any
undefined

The value used for selection. Obtained from v-list’s v-model:selected when the item is selected.

'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain'
'text'

Applies a distinct style to the component.

string | number
undefined

Sets the width for the component.

Events
name
type
[MouseEvent | KeyboardEvent]

Event that is emitted when the component is clicked.

Slots
{ index: number depth: number path: number[] isFirst: boolean isLast: boolean isActive: boolean isOpen: boolean isSelected: boolean isIndeterminate: boolean isDisabled: boolean select: (value: boolean) => void }
{ index: number depth: number path: number[] isFirst: boolean isLast: boolean isActive: boolean isOpen: boolean isSelected: boolean isIndeterminate: boolean isDisabled: boolean select: (value: boolean) => void }
{ index: number depth: number path: number[] isFirst: boolean isLast: boolean isActive: boolean isOpen: boolean isSelected: boolean isIndeterminate: boolean isDisabled: boolean select: (value: boolean) => void }
{ subtitle: string | number | boolean }
{ title: string | number | boolean }

Adds an item inside the input and after input content.

The default Vue slot.

Adds an item outside the input and before input content.

Slot for the component’s subtitle content.

Slot for the component’s title content.

Exposed
(activated: boolean, e: Event) => void
{}
boolean
boolean
boolean
{ isLink: boolean isRouterLink: boolean isClickable: boolean href: string | undefined linkProps: Record<string, string | undefined> route: (RouteLocationGeneric & { href: string }) | undefined navigate: | ((e?: MouseEvent | undefined) => Promise<void | NavigationFailure>) | undefined isActive?: boolean | undefined isExactActive?: boolean | undefined }
{ filterable: boolean | (() => boolean) hasPrepend: boolean updateHasPrepend: (value: boolean) => void trackingIndex: number navigationStrategy: 'focus' | 'track' uid: string }
{ children: Map<unknown, unknown[]> parents: Map<unknown, unknown> disabled: Set<unknown> activatable: boolean selectable: boolean opened: Set<unknown> activated: Set<unknown> scrollToActive: boolean selected: Map<unknown, 'indeterminate' | 'off' | 'on'> selectedValues: unknown[] itemsRegistration: ItemsRegistrationType register: ( id: unknown, parentId: unknown, isDisabled: boolean, isGroup?: boolean | undefined, ) => void unregister: (id: unknown) => void updateDisabled: (id: unknown, isDisabled: boolean) => void open: (id: unknown, value: boolean, event?: Event | undefined) => void activate: (id: unknown, value: boolean, event?: Event | undefined) => void select: (id: unknown, value: boolean, event?: Event | undefined) => void openOnSelect: (id: unknown, value: boolean, event?: Event | undefined) => void getPath: (id: unknown) => unknown[] }
(selected: boolean, e: Event) => void

Activate the list item.

The unique identifier of the list item.

Check if the list item is activated.

Check if the list item activates a group.

Check if the list item is selected.

Navigation information if list item functions as a link.

The reference to the parent list component.

The root nested list component

Select this list item.