Skip to content
PixiKit

Live List

A scrolling list whose rows pop, slide or fade in as they come into view, with hover and keyboard selection, edge fades and a framed panel.

pixikit.com/docs/components/live-list

Customize

Initial selected index-1
Select on hover
Enable arrow navigation
Loop
Animation
Animate once
Stagger0.05s
Show gradients
Fade size56px
Display scrollbar
Frame
Theme
Accent color
Radius14px
Gap8px
Width420px
Max height440px

Props

23
NameTypeDefaultDescription
items(string | LiveListItem)[]DEFAULT_ITEMSThe rows. Strings become plain rows; objects can add an icon or image, a description and a label on the right.
onItemSelect(item: string | LiveListItem, index: number) => voidNoneCalled when a row is clicked, or when Enter is pressed on the selected row.
renderItem(item: string | LiveListItem, index: number, selected: boolean) => ReactNodeNoneRenders your own content inside each row instead of the built-in layout.
initialSelectedIndexnumber-1The row that starts selected; -1 for none.
selectOnHoverbooleantrueMoves the selection to the row under the cursor.
enableArrowNavigationbooleantrueArrow keys, Home and End move the selection while the list is hovered or focused.
loopbooleanfalseWraps keyboard navigation from the last row back to the first.
animation"pop" | "slide" | "fade" | "none""pop"How rows animate in as they scroll into view.
animateOncebooleanfalseAnimates each row only the first time it appears.
staggernumber0.05Delay between rows when the list first appears, in seconds.
showGradientsbooleantrueFades rows out at the top and bottom edges while there is more to scroll.
fadeSizenumber56Height of the edge fades, in pixels.
displayScrollbarbooleantrueShows a thin scrollbar when the list overflows.
framebooleantrueShows the panel around the list.
theme"dark" | "light""dark"Color theme of the panel and rows.
accentColorstring"#a8a4b8"Color of the selection outline.
radiusnumber14Corner radius of the rows, in pixels.
gapnumber8Space between rows, in pixels.
widthnumber | string420Maximum width of the list.
maxHeightnumber | string440Height at which the list starts to scroll.
classNamestringNone
itemClassNamestringNoneExtra class names for each row.
styleCSSPropertiesNone

More media components in Pro

View all

Related