@arche-mc2/arche-controls
Version:
We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get
29 lines (28 loc) • 967 B
TypeScript
/// <reference types="react" />
import { NestedCSSProperties } from 'typestyle/lib/types';
export interface UpCarouselItem {
key: string;
title: string;
logo?: string | unknown;
color?: string;
description?: string;
action?: (item: UpCarouselItem) => Promise<unknown>;
parameters?: unknown;
}
export declare type GetterStyle = (props: Partial<UpCarouselProps>, currentItem: CarouselItemProps) => NestedCSSProperties;
export interface UpCarouselCustomStyles {
list?: GetterStyle;
title?: GetterStyle;
item?: GetterStyle;
}
export interface UpCarouselProps {
customStyles?: UpCarouselCustomStyles;
items: UpCarouselItem[];
renderItem?: (isOpen: boolean, item: UpCarouselItem) => JSX.Element;
}
export interface CarouselItemProps {
item: UpCarouselItem;
currentItem?: UpCarouselItem;
setCurrentItem?: (item: UpCarouselItem) => void;
customStyles?: UpCarouselCustomStyles;
}