index.tsx 792 B

123456789101112131415161718192021
  1. import { Corner } from '../icons/src/vender/solid/shapes'
  2. import cn from '@/utils/classnames'
  3. type CornerLabelProps = {
  4. label: string
  5. className?: string
  6. labelClassName?: string
  7. }
  8. const CornerLabel: React.FC<CornerLabelProps> = ({ label, className, labelClassName }) => {
  9. return (
  10. <div className={cn('group/corner-label inline-flex items-start', className)}>
  11. <Corner className='h-5 w-[13px] text-background-section group-hover/corner-label:text-background-section-burn' />
  12. <div className={cn('flex items-center gap-0.5 bg-background-section py-1 pr-2 group-hover/corner-label:bg-background-section-burn', labelClassName)}>
  13. <div className='system-2xs-medium-uppercase text-text-tertiary'>{label}</div>
  14. </div>
  15. </div>
  16. )
  17. }
  18. export default CornerLabel