tharikida-ui
Version:
A modern, lightweight React UI component library with built-in theming, accessibility, and full TypeScript support. Create beautiful, responsive, and customizable web apps faster with ready-to-use components for any project.
25 lines (24 loc) • 1.07 kB
TypeScript
import React from "react";
/**
* `Star` is an SVG star shape component supporting theming and custom styles.
*
* @param {object} props - The properties to customize the `Star` component.
* @param {number} props.size - The size (width & height) of the star in pixels.
* @param {string} [props.color] - The fill color of the star. Overrides theme.primaryColor if provided.
* @param {string} [props.strokeColor] - The stroke color of the star. Overrides theme.borderColor if provided.
* @param {string|number} [props.strokeWidth] - The stroke width of the star. Overrides theme.borderWidth if provided.
* @param {string} [props.className] - Additional className for the star container.
* @param {React.CSSProperties} [props.styles] - Custom styles for the star container.
*
* @returns {JSX.Element} A themed SVG star shape.
*/
type Props = {
size: number;
color?: string;
strokeColor?: string;
strokeWidth?: string | number;
className?: string;
styles?: React.CSSProperties;
};
declare const Star: React.FC<Props>;
export default Star;