mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 02:22:06 +00:00
22 lines
466 B
TypeScript
22 lines
466 B
TypeScript
|
|
import type { ChipProps } from "@mui/material";
|
||
|
|
import { Chip } from "@mui/material";
|
||
|
|
|
||
|
|
import { cn } from "@/lib/utils";
|
||
|
|
|
||
|
|
export type BadgeProps = ChipProps;
|
||
|
|
|
||
|
|
export function Badge({ className, size = "small", ...props }: BadgeProps) {
|
||
|
|
return (
|
||
|
|
<Chip
|
||
|
|
size={size}
|
||
|
|
{...props}
|
||
|
|
className={cn("font-medium", className)}
|
||
|
|
sx={{
|
||
|
|
borderRadius: "var(--radius-sm)",
|
||
|
|
fontSize: "0.75rem",
|
||
|
|
...props.sx,
|
||
|
|
}}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|