mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-06 00:04:39 +00:00
29 lines
738 B
TypeScript
29 lines
738 B
TypeScript
export const Chip = (props: {
|
|
icon_name?: string;
|
|
icon_color?: string;
|
|
name?: string;
|
|
name_2?: string;
|
|
devider?: string;
|
|
bg_color?: string;
|
|
}) => {
|
|
return (
|
|
<div
|
|
className={`px-2 sm:px-4 py-0.5 sm:py-1 rounded-sm ${
|
|
props.bg_color || "bg-gray-500"
|
|
} ${props.icon_name ? "flex items-center justify-center gap-1" : ""}`}
|
|
>
|
|
{props.icon_name && (
|
|
<span
|
|
className={`iconify w-6 h-6 ${props.icon_name} fill-${
|
|
props.icon_color || "white"
|
|
}`}
|
|
></span>
|
|
)}
|
|
<p className="text-xs text-white xl:text-base">
|
|
{props.name}
|
|
{props.name && props.devider ? props.devider : " "}
|
|
{props.name_2}
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|