kupos-ui-components-lib
Version:
A reusable UI components package
36 lines (35 loc) • 948 B
TypeScript
export interface ServiceListProps {
variant?: "mobile" | "desktop";
services?: Array<{
id: string;
name: string;
description?: string;
price?: number;
currency?: string;
imageUrl?: string;
rating?: number;
available?: boolean;
featured?: boolean;
}>;
onServiceSelect?: (serviceId: string) => void;
onServiceView?: (serviceId: string) => void;
colors?: {
primaryColor?: string;
secondaryColor?: string;
backgroundColor?: string;
textColor?: string;
cardBackgroundColor?: string;
highlightColor?: string;
};
showFilters?: boolean;
filters?: {
categories?: string[];
priceRange?: {
min: number;
max: number;
};
sortBy?: "price" | "rating" | "name";
sortOrder?: "asc" | "desc";
};
onFilterChange?: (filters: any) => void;
}