@senka-ai/ui
Version:
A modern, type-safe Svelte 5 UI component library with full theme support, accessibility standards, and robust state management patterns
19 lines • 881 B
TypeScript
import type { BaseProps, ExtendedSizedComponent, ChangeHandler, InteractiveHandlers } from '../../type/component';
interface Props extends BaseProps, ExtendedSizedComponent, ChangeHandler<number>, InteractiveHandlers {
/** Current rating value (0-5) */
rating?: number;
/** Maximum number of stars @default 5 */
maxRating?: number;
/** Color theme for filled stars @default 'primary' */
color?: 'primary' | 'success' | 'warning' | 'error';
/** Whether the rating is read-only */
readonly?: boolean;
/** Allow half-star ratings (not implemented yet, for future enhancement) */
allowHalf?: boolean;
/** Name for form input */
name?: string;
}
declare const StarRating: import("svelte").Component<Props, {}, "">;
type StarRating = ReturnType<typeof StarRating>;
export default StarRating;
//# sourceMappingURL=StarRating.svelte.d.ts.map