Badge

Default Badge


      const ButtonExample = () =>
            <Badge badgeComponent={1}>
                <div style={{ padding: '2rem', backgroundColor: 'gray', borderRadius: '8px' }}>
                    Badge
                </div>
            </Badge>
          
1
Badge

Badge with icon


      const ButtonExample = () =>
            <Badge badgeComponent={
                <span style={{ display: 'flex', alignItems: 'center', padding: '0.5rem 0' }}>
                    🥰
                    1000
                </span>
            }>
                <div style={{ padding: '2rem', backgroundColor: 'gray', borderRadius: '8px' }}>
                    Badge
                </div>
            </Badge>
          
🥰 1000
Badge

Animated Badge

slide

    const BadgeExample = () =>
      <Badge
        animationProps={{
          hover: {
            key: 'slide',
            option: {
              duration: '1s',
              delay: '0s',
              direction: 'top',
            },
          },
        }}
      >
        hover me!
      </Badge>

duration 1 s

new
Badge

duration 2 s

new
Badge

duration 3 s

new
Badge

duration 4 s

new
Badge

duration 5 s

new
Badge
squeeze

    const BadgeExample = () =>
      <Badge
        animationProps={{
          hover: {
            key: 'squeeze',
            option: {
              duration: '1s',
              delay: '0s',
              direction: 'top',
            },
          },
        }}
      >
        hover me!
      </Badge>

duration 1 s

new
Badge

duration 2 s

new
Badge

duration 3 s

new
Badge

duration 4 s

new
Badge

duration 5 s

new
Badge
bgColorFade

    const BadgeExample = () =>
      <Badge
        animationProps={{
          hover: {
            key: 'bgColorFade',
            option: {
              duration: '1s',
              delay: '0s',
              direction: 'top',
            },
          },
        }}
      >
        hover me!
      </Badge>

duration 1 s

new
Badge

duration 2 s

new
Badge

duration 3 s

new
Badge

duration 4 s

new
Badge

duration 5 s

new
Badge
shake

    const BadgeExample = () =>
      <Badge
        animationProps={{
          hover: {
            key: 'shake',
            option: {
              duration: '1s',
              delay: '0s',
              direction: 'top',
            },
          },
        }}
      >
        hover me!
      </Badge>

duration 1 s

new
Badge

duration 2 s

new
Badge

duration 3 s

new
Badge

duration 4 s

new
Badge

duration 5 s

new
Badge