ar-test/app/components/ui/logo-mark.tsx

26 lines
890 B
TypeScript

import { cva, type VariantProps } from 'class-variance-authority';
import { cn } from '~/lib/utils';
const logoVariants = cva('flex shrink-0 select-none items-center justify-center font-bold leading-none text-primary', {
variants: {
size: {
xs: 'h-7 w-7 rounded-item text-base',
sm: 'h-8 w-8 rounded-control text-md',
md: 'h-[34px] w-[34px] rounded-group text-md',
},
surface: {
app: 'bg-surface-control ring-1 ring-inset ring-border-control',
viewer: 'bg-ink',
},
},
defaultVariants: { size: 'md', surface: 'app' },
});
export function LogoMark({ size, surface, className }: VariantProps<typeof logoVariants> & { className?: string }) {
return (
<span aria-hidden='true' className={cn(logoVariants({ size, surface }), className)}>
t.
</span>
);
}