Skip to content

Commit

Permalink
feat: basic button component (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Jun 20, 2024
1 parent 61a9d97 commit 7258a47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,7 @@ Below you can find a more complex example which is using multiple components and
| unfold/components/separator.html | Separator, horizontal rule | class |
| unfold/components/text.html | Paragraph of text | class |
| unfold/components/title.html | Basic heading element | class |
| unfold/components/button.html | Basic button element | submit |

## Unfold development

Expand Down
3 changes: 3 additions & 0 deletions src/unfold/templates/unfold/components/button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<button {% if submit %}type="submit"{% endif%} class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded-md text-sm text-white">
{{ children }}
</button>

0 comments on commit 7258a47

Please sign in to comment.