UNPKG

1.19 kBTypeScriptView Raw
1import React from 'react';
2import type { ReactNode } from 'react';
3import { NativeProps } from '../../utils/native-props';
4export declare type ListProps = {
5 header?: ReactNode;
6 mode?: 'default' | 'card';
7 children?: ReactNode;
8} & NativeProps<'--active-background-color' | '--align-items' | '--border-bottom' | '--border-inner' | '--border-top' | '--extra-max-width' | '--font-size' | '--header-font-size' | '--padding-left' | '--padding-right' | '--prefix-padding-right' | '--prefix-width'>;
9export declare type ListRef = {
10 nativeElement: HTMLDivElement | null;
11};
12export declare const List: React.ForwardRefExoticComponent<{
13 header?: ReactNode;
14 mode?: "default" | "card" | undefined;
15 children?: ReactNode;
16} & {
17 className?: string | undefined;
18 style?: (React.CSSProperties & Partial<Record<"--active-background-color" | "--align-items" | "--border-bottom" | "--border-inner" | "--border-top" | "--extra-max-width" | "--font-size" | "--header-font-size" | "--padding-left" | "--padding-right" | "--prefix-padding-right" | "--prefix-width", string>>) | undefined;
19 tabIndex?: number | undefined;
20} & React.AriaAttributes & React.RefAttributes<ListRef>>;