Skip to content

Commit ffd63c0

Browse files
Merge pull request #63 from zainbinfurqan/setting-button
worked on setting icon button
2 parents b0adb8c + e948c23 commit ffd63c0

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

tailwind_components/buttons/collection.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import test from "./test_file";
22
import test1 from "./test1_file";
33
import deleteButton from "./delete_button";
44
import cardWithButton from "./card_with_button_button1";
5+
import settingButton from "./rectangle_setting";
56

67
const buttonCollections = [
7-
{componentName: "button1", component: test},
8-
{componentName: "button2", component: test1},
9-
{componentName: "Card with button", component: cardWithButton},
10-
{componentName: "Delete button", component: deleteButton},
8+
{ componentName: "button1", component: test },
9+
{ componentName: "button2", component: test1 },
10+
{ componentName: "Card with button", component: cardWithButton },
11+
{ componentName: "Delete button", component: deleteButton },
12+
{ componentName: "Setting button", component: settingButton },
1113

1214
];
1315

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { stripIndent } from "react-codepen-prefill-embed";
2+
3+
const rectangleSettingButton = stripIndent`<div class="bg-gray-50">
4+
<div class="mx-auto max-w-7xl py-12 px-4 sm:px-6 lg:flex lg:items-center lg:justify-between lg:py-16 lg:px-8">
5+
<div class="mt-8 flex lg:mt-0 lg:flex-shrink-0">
6+
<div class="inline-flex rounded-md shadow">
7+
<a
8+
href="#"
9+
class="inline-flex items-center justify-center rounded-sm border border-blue-400 bg-blue-200 px-5 py-3 text-base font-medium text-blue-500 hover:bg-blue-200">
10+
<span class="mx-2">
11+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
12+
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 11-3 0m3 0a1.5 1.5 0 10-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-9.75 0h9.75" />
13+
</svg>
14+
</span>
15+
Setting
16+
</a>
17+
</div>
18+
</div>
19+
</div>
20+
</div>`;
21+
22+
export default rectangleSettingButton;

0 commit comments

Comments
 (0)