vael-ui v0.5.7

Directives

v-hover-indicator

Gives your own list the hover highlight vael-ui's lists have: one highlight that slides to the row under the pointer, or to the row with keyboard focus, instead of each row changing color on its own. It adds the highlight element and the positioning itself. Touch doesn't move it, as with hover styles. It follows a ConfigProvider's indicator and motion, so a spring or motion: false applies here too. The highlight is the list's first child, so a :first-child rule for your rows needs :first-of-type or a class instead. The Vapor build exports its own version under the same name from vael-ui/vapor.

Install

import { vHoverIndicator } from 'vael-ui'

Examples

A selector for the rows.
over: a tint over solid rows.
orientation: 'horizontal': items side by side.
scope: 'ul': each list highlights only its own rows.
group: pass from one list to the next and the highlight slides across.
class: your own look for the highlight.

Value

NameTypeDescription
stringstringA CSS selector for the rows, such as v-hover-indicator="'.row'". Rows that are disabled don't get the highlight.
itemSelectorstringThe same selector, in the object form.
overbooleanDraws the highlight as a see-through tint over the rows instead of behind them, for rows with a solid background. Set the tint with --ui-indicator-over-bg. Same as the .over modifier.
orientation'vertical' | 'horizontal''horizontal' for items side by side, such as a row of tabs. Default 'vertical'.
scopestringA row counts only when its nearest match for this selector is the list itself, so a list nested inside another keeps its own rows.
scrollerbooleanThe list scrolls, and the highlight scrolls with its rows. Unset, it checks the list's own overflow.
groupstringLists with the same group hand the highlight over: moving the pointer from one to the next, it slides across instead of fading out and in.
classstringA class of your own on the highlight element. In a component with scoped styles, style it with :deep(.your-class), since the directive creates the element.
enabledbooleanfalse hides the highlight and stops it following the pointer, such as while a row is being dragged. A value of false removes it instead.

Modifiers

NameTypeDescription
.over—Sets over.