@dvcol/neo-svelte
Version:
Neomorphic ui library for svelte 5
35 lines (34 loc) • 1.08 kB
TypeScript
import type { NeoListContext, NeoListRender, NeoListSection } from './neo-list.model.js';
import type { NeoSkeletonTextProps } from '../skeletons/neo-skeleton-text.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;
/**
* If true, the section will display as a skeleton.
*/
skeleton?: boolean;
/**
* Optional props to pass to the skeleton loader.
*/
skeletonProps?: NeoSkeletonTextProps;
} & HTMLNeoBaseElement<HTMLElementTagNameMap[Tag]>;