File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
tailwind_components/buttons Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ import { stripIndent } from "react-codepen-prefill-embed" ;
2+
3+ const cardWithButton = stripIndent `
4+ <div class="py-8 px-8 max-w-sm mx-auto mt-12 bg-white rounded-xl shadow-lg space-y-2 sm:py-4 sm:flex sm:items-center sm:space-y-0 sm:space-x-6">
5+ <img class="block mx-auto h-24 rounded-full sm:mx-0 sm:shrink-0" src="https://thispersondoesnotexist.com/image" alt="Woman's Face">
6+ <div class="text-center space-y-2 sm:text-left">
7+ <div class="space-y-0.5">
8+ <p class="text-lg text-black font-semibold">
9+ Erin Lindford
10+ </p>
11+ <p class="text-slate-500 font-medium">
12+ Product Engineer
13+ </p>
14+ </div>
15+ <button class="px-4 py-1 text-sm text-purple-600 font-semibold rounded-full border border-purple-200 hover:text-white hover:bg-purple-600 hover:border-transparent focus:outline-none focus:ring-2 focus:ring-purple-600 focus:ring-offset-2">Message</button>
16+ </div>
17+ </div>
18+ ` ;
19+
20+ export default cardWithButton ;
Original file line number Diff line number Diff line change 11import test from "./test_file" ;
22import test1 from "./test1_file" ;
3+ import cardWithButton from "./card_with_button_button1" ;
34
45const buttonCollections = [
56 { componentName : "button1" , component : test } ,
67 { componentName : "button2" , component : test1 } ,
8+ { componentName : "Card with button" , component : cardWithButton } ,
79] ;
810
911export default buttonCollections ;
You can’t perform that action at this time.
0 commit comments