File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
tailwind_components/badges Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ import { stripIndent } from "react-codepen-prefill-embed" ;
2+
3+ const CardBadge = stripIndent `
4+ <div class="relative mx-10 my-10 max-w-sm rounded overflow-hidden shadow-lg">
5+ <span class="absolute right-0 top-0 inline-block py-1.5 px-2.5 leading-none text-center whitespace-nowrap align-baseline font-bold bg-red-600 text-xl text-white rounded">New</span>
6+
7+ <img class="w-full" src="https://media.istockphoto.com/photos/hot-air-balloons-picture-id184091124?s=612x612" alt="VK tailwind Bootstrap">
8+ <div class="px-6 py-4">
9+ <div class="font-bold text-xl mb-2">Welcome to VK tailwind Bootstrap</div>
10+ <p class="text-gray-700 text-base">
11+ Best part of card badge is to have a badge above a card. Nothing else 😆
12+ </p>
13+ </div>
14+ </div>
15+ ` ;
16+ export default CardBadge ;
Original file line number Diff line number Diff line change 11import exampleBadges from "./colorful_badge" ;
2+ import CardBadge from "./card_badge" ;
23import iconBadges from "./icon_badge" ;
34
45const badgeCollection = [
56 { componentName : "Normal Badges" , component : exampleBadges } ,
67 { componentName : "Badges with Dot" , component : iconBadges } ,
8+ { componentName : "Card Badge" , component : CardBadge } ,
79] ;
810
911export default badgeCollection ;
You can’t perform that action at this time.
0 commit comments