-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
phernandez
committed
Oct 27, 2024
1 parent
3875712
commit 3f8c181
Showing
11 changed files
with
98 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="flex w-full max-w-sm items-center space-x-2"> | ||
<Input type="email" placeholder="Email"/> | ||
<Button type="submit">Subscribe</Button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="w-full space-y-2"> | ||
<Label htmlFor="picture">Picture</Label> | ||
<Input id="picture" type="file"/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="w-full space-y-2"> | ||
<Label for="email" disabled="true">Email Address</Label> | ||
<Input id="email" type="text" class="peer" disabled/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="flex items-center space-x-2"> | ||
<Checkbox id="terms" /> | ||
<Label htmlFor="terms">Accept terms and conditions</Label> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Label | ||
|
||
Displays a label for a form field. | ||
|
||
## Preview | ||
|
||
<iframe | ||
src="{{ preview_url}}/components/label" | ||
style="width: 100%; height: 200px; border: none;"> | ||
</iframe> | ||
|
||
## Props | ||
|
||
| Prop | Type | Default | Description | | ||
|-------------|---------|---------|-------------------------------------------| | ||
| `htmlFor` | String | `False` | The id of the field the label refers to. | | ||
| `className` | String | `""` | Additional CSS classes for customization. | | ||
|
||
## Components | ||
|
||
=== "Label.jinja" | ||
{% raw %} | ||
```jinja | ||
{% include '../../../components/ui/Label.jinja' %} | ||
``` | ||
{% endraw %} | ||
|
||
## Usage | ||
|
||
```html | ||
{% include-markdown "../../backend/templates/label.html" %} | ||
``` |