Upload files to "frontend/components"
This commit is contained in:
parent
e6824ac5b2
commit
317cf34156
5 changed files with 99 additions and 0 deletions
14
frontend/components/Button.html
Normal file
14
frontend/components/Button.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<button
|
||||
type="{{ type or 'button' }}"
|
||||
class="btn {{ class_extra or '' }}"
|
||||
{% if onclick %}onclick="{{ onclick }}"{% endif %}
|
||||
{% if hx_get %}hx-get="{{ hx_get }}"{% endif %}
|
||||
{% if hx_post %}hx-post="{{ hx_post }}"{% endif %}
|
||||
{% if hx_put %}hx-put="{{ hx_put }}"{% endif %}
|
||||
{% if hx_delete %}hx-delete="{{ hx_delete }}"{% endif %}
|
||||
{% if hx_target %}hx-target="{{ hx_target }}"{% endif %}
|
||||
{% if hx_swap %}hx-swap="{{ hx_swap }}"{% endif %}
|
||||
{% if disabled %}disabled{% endif %}
|
||||
>
|
||||
{{ label }}
|
||||
</button>
|
||||
Loading…
Add table
Add a link
Reference in a new issue