|
1 | 1 | <div class="mb-12">
|
2 |
| - |
3 | 2 | <div id="button-main" class="group flex items-center">
|
4 | 3 | <a
|
5 | 4 | href="#button-main"
|
|
21 | 20 | </svg>
|
22 | 21 | </a>
|
23 | 22 | <h1
|
24 |
| - class="block antialiased tracking-normal font-sans text-3xl font-bold leading-snug !mb-2 text-black" |
25 |
| - > |
26 |
| - Tailwind CSS Button with Angular |
27 |
| - </h1> |
| 23 | + class="block antialiased tracking-normal font-sans text-3xl font-bold leading-snug !mb-2 text-black" |
| 24 | + > |
| 25 | + Tailwind CSS Button with Angular |
| 26 | + </h1> |
28 | 27 | </div>
|
29 | 28 |
|
30 | 29 | <p
|
31 | 30 | class="block antialiased font-sans text-base leading-relaxed text-inherit !mb-4 !font-normal !text-gray-600"
|
32 | 31 | >
|
33 |
| - Use our Tailwind CSS Button built with Angular to enable user actions on your website or applications. |
| 32 | + Use our Tailwind CSS Button built with Angular to enable user actions on |
| 33 | + your website or applications. |
34 | 34 | </p>
|
35 | 35 | <p
|
36 | 36 | class="block antialiased font-sans text-base leading-relaxed text-inherit !mb-4 !font-normal !text-gray-600"
|
37 | 37 | >
|
38 |
| - The avatar is one of the most important UI components used by web designers to allow user interaction with a website or application. When clicked, a button can initiate various functions, from submitting a form or going to another page, to enabling a feature on and off. For a good user experience, buttons should provide feedback to indicate the initiation: have a change in color, make an animation, or a sound. |
| 38 | + The avatar is one of the most important UI components used by web designers |
| 39 | + to allow user interaction with a website or application. When clicked, a |
| 40 | + button can initiate various functions, from submitting a form or going to |
| 41 | + another page, to enabling a feature on and off. For a good user experience, |
| 42 | + buttons should provide feedback to indicate the initiation: have a change in |
| 43 | + color, make an animation, or a sound. |
39 | 44 | </p>
|
40 | 45 |
|
41 | 46 | <p
|
42 | 47 | class="block antialiased font-sans text-base leading-relaxed text-inherit !mb-4 !font-normal !text-gray-600"
|
43 | 48 | >
|
44 |
| - Below we present you our Angular Button example crafted with Tailwind CSS that will help you build enterprise-level applications with ease. Customize the component or add it directly to your project! |
| 49 | + Below we present you our Angular Button example crafted with Tailwind CSS |
| 50 | + that will help you build enterprise-level applications with ease. Customize |
| 51 | + the component or add it directly to your project! |
45 | 52 | </p>
|
46 | 53 | <p
|
47 |
| - class="block antialiased font-sans text-base leading-relaxed text-inherit !mb-4 !font-normal !text-gray-600" |
| 54 | + class="block antialiased font-sans text-base leading-relaxed text-inherit !mb-4 !font-normal !text-gray-600" |
48 | 55 | >
|
49 | 56 | You first need to import the DUIButton Module into your application module
|
50 | 57 | </p>
|
|
92 | 99 | <div class="code-snippet-area mt-10">
|
93 | 100 | <feature-preview>
|
94 | 101 | <dui-button size="md" variant="filled" color="gray">Filled</dui-button>
|
95 |
| - <dui-button size="md" variant="outlined" color="gray">Outlined</dui-button> |
| 102 | + <dui-button size="md" variant="outlined" color="gray" |
| 103 | + >Outlined</dui-button |
| 104 | + > |
96 | 105 | <dui-button size="md" variant="text" color="gray">Text</dui-button>
|
97 |
| - <dui-button size="md" variant="gradient" color="gray">Gradient</dui-button> |
| 106 | + <dui-button size="md" variant="gradient" color="gray" |
| 107 | + >Gradient</dui-button |
| 108 | + > |
98 | 109 | </feature-preview>
|
99 | 110 | <code-previewer [Code]="outlinedButton"> </code-previewer>
|
100 | 111 | </div>
|
101 | 112 |
|
102 |
| - |
103 | 113 | <div class="mt-6">
|
104 | 114 | <div id="button-size" class="group flex items-center">
|
105 | 115 | <a
|
|
188 | 198 | </feature-preview>
|
189 | 199 | <code-previewer [Code]="butoonColorCode"> </code-previewer>
|
190 | 200 | </div>
|
| 201 | + |
| 202 | + <!-- Block Level button --> |
| 203 | + <div class="mt-6"> |
| 204 | + <div id="button-block" class="group flex items-center"> |
| 205 | + <a |
| 206 | + href="#button-block" |
| 207 | + class="absolute z-50 -ml-10 mb-2.5 rounded-md border border-blue-gray-50 bg-blue-gray-50/50 p-1 opacity-0 hover:opacity-100 group-hover:opacity-100" |
| 208 | + ><svg |
| 209 | + xmlns="http://www.w3.org/2000/svg" |
| 210 | + fill="none" |
| 211 | + viewBox="0 0 24 24" |
| 212 | + stroke-width="2.5" |
| 213 | + stroke="currentColor" |
| 214 | + aria-hidden="true" |
| 215 | + class="pointer-events-none h-3.5 w-3.5 rounded-lg" |
| 216 | + > |
| 217 | + <path |
| 218 | + stroke-linecap="round" |
| 219 | + stroke-linejoin="round" |
| 220 | + d="M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5l-3.9 19.5m-2.1-19.5l-3.9 19.5" |
| 221 | + ></path> |
| 222 | + </svg> |
| 223 | + </a> |
| 224 | + <h2 |
| 225 | + class="block antialiased tracking-normal font-sans text-2xl font-bold leading-snug !mb-2 text-black" |
| 226 | + > |
| 227 | + Block Level Button |
| 228 | + </h2> |
| 229 | + </div> |
| 230 | + <p |
| 231 | + class="block antialiased font-sans text-base leading-relaxed text-inherit !mb-4 !font-normal !text-gray-600" |
| 232 | + > |
| 233 | + A |
| 234 | + <code |
| 235 | + class="rounded-md px-1 font-sans font-semibold bg-gray-900/[0.1] text-gray-900 text-sm" |
| 236 | + >Button</code |
| 237 | + > |
| 238 | + could be a block-level component as well that gets all the available space |
| 239 | + in a row. You can render a |
| 240 | + <code |
| 241 | + class="rounded-md px-1 font-sans font-semibold bg-gray-900/[0.1] text-gray-900 text-sm" |
| 242 | + >Button</code |
| 243 | + > |
| 244 | + as a block-level element using the |
| 245 | + <code |
| 246 | + class="rounded-md px-1 font-sans font-semibold bg-gray-900/[0.1] text-gray-900 text-sm" |
| 247 | + >fullWidhh</code |
| 248 | + > |
| 249 | + prop. |
| 250 | + </p> |
| 251 | + </div> |
| 252 | + |
| 253 | + <div class="code-snippet-area mt-10"> |
| 254 | + <feature-preview> |
| 255 | + <dui-button size="md" class="w-full" [fullWidth]="true" color="gray">Button</dui-button> |
| 256 | + </feature-preview> |
| 257 | + <code-previewer [Code]="buttonBlockCode"> </code-previewer> |
| 258 | + </div> |
191 | 259 | </div>
|
0 commit comments