amotify
Version:
UI Component for React,NextJS,esbuild
35 lines (34 loc) • 1 kB
TypeScript
/// <reference types="react" />
import { ReactElement, StyleTags } from '../@declares';
import { Flex } from '../atoms';
declare namespace List {
type ListChildCallbackProps = {
children: ReactElement;
index: number;
};
type Input = StyleTags.BasicElement & {
ListChildCallback?: {
(p: ListChildCallbackProps): JSX.Element;
};
children?: ReactElement;
items?: ReactElement[];
};
}
declare const List: React.FC<List.Input>;
declare namespace ListItem {
type Input = Flex.Input;
namespace Methods {
type Component = {
(p: Input): JSX.Element;
};
type FNs = {
Center: (p: Input) => JSX.Element;
Left: (p: Input) => JSX.Element;
Right: (p: Input) => JSX.Element;
Separate: (p: Input) => JSX.Element;
};
}
type Methods = Methods.Component & Methods.FNs;
}
declare const ListItem: ListItem.Methods;
export { List, ListItem };