PyBlade/ui
Menu⌄
DocsComponentsButton

Button

Displays a button, in six variants and four sizes.

1 file

Installation

pyblade-ui add button

Usage

The tag <pb-ui.button> is available in all your templates.

<pb-ui.button variant="outline" size="sm">Save</pb-ui.button>

Examples

Variants

Sizes

With an icon

Disabled

Props

PropDefault
variant'default'
size'default'
type'button'

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.