<button class="button"></button>
<button class="active button"></button>
<a class="primary button"></a>
<div class="preloader button">Text</div>
<button class="disabled button"></button>
<button class="inactive button"></button>
<button class="rounded button"></button>
Button
The Button component in Punica CSS Framework is a versatile element designed for triggering actions or navigating users. It supports various styles, sizes, and states, allowing seamless customization to suit different use cases. To apply this component, add the
.button
class to an a
or button
element.
Sizes of Button
Add the .tiny, .mini, .small, .large
or .huge
class to a button to make it smaller
or larger.
Also, you can add the .block
class for a full-width button.
Button Groups
To create a button group, add the .buttons
class to a div
element around the
buttons.
Sizes of button groups
Also, add the
.tiny, .mini, .small, .large
or .huge
class to .buttons
to
make
it smaller or larger group buttons.
Full-width Button Groups
And you can add the
.block
class to .buttons
for a full-width button group.
Button with Dropdown
A button can be used to trigger a dropdown menu.
You can change the direction of the dropdown by adding any .right .left
.top .top.left .top.right .bottom.left .bottom.right
classes to .dropdown
container.
Vertical Button Groups
Also, just add the .vertical
class to .buttons
to make it vertical button group.
Default Class Name | Combinators |
---|---|
buttons |
.buttons |
button |
.button .buttons > .button |
Styles | Combinators |
primary |
.primary.button .primary.buttons |
success |
.success.button .success.buttons |
warning |
.warning.button .warning.buttons |
error |
.error.button .error.buttons |
dark |
.dark.button .dark.buttons |
outlined |
.outlined.button |
Sizes | Combinators |
tiny |
.tiny.button .tiny.buttons |
mini |
.mini.button .mini.buttons |
small |
.small.button .small.buttons |
large |
.large.button .large.buttons |
huge |
.huge.button .huge.buttons |
States | Combinators |
active |
.active.button |
inactive |
.inactive.button |
disabled |
.disabled.button |
block |
.block.button .block.buttons |
vertical |
.vertical.buttons |
preloader |
.preloader.button |
Dropdown | Combinators |
dropdown |
.dropdown .buttons > dropdown |
right |
.right.dropdown |
left |
.left.dropdown |
top |
.top.dropdown |
bottom |
.bottom.dropdown |
toggle |
.dropdown > .button.toggle |
clickable |
.clickable.dropdown |