UNPKG

@dvcol/neo-svelte

Version:

Neomorphic ui library for svelte 5

38 lines (37 loc) 1.03 kB
import type { NeoListContext, NeoListRender, NeoListSection } from './neo-list.model.js'; import type { HTMLNeoBaseElement } from '../utils/html-element.utils.js'; export type NeoListBaseSectionProps<Value = unknown, Tag extends keyof HTMLElementTagNameMap = 'ul'> = { /** * The list section to display. */ list: NeoListRender<Value>; /** * The list section to display. */ section: NeoListSection<Value, Tag>; /** * If true, the section will display as a selectable list of items. */ select?: boolean; index: number; /** * The current list context. */ context: NeoListContext; /** * Optional filter to highlight text. */ highlight?: string; /** * Reverse the direction of the item. * * @default false */ reverse?: boolean; /** * Inverts the flow of the list (flex-direction: column-reverse). * * @default false */ flip?: boolean; } & HTMLNeoBaseElement<HTMLElementTagNameMap[Tag]>;