set up new workflow and migrate to .forgejo dir (#5)
Some checks failed
Deploy / deploy (push) Failing after 39s
Some checks failed
Deploy / deploy (push) Failing after 39s
Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com> Reviewed-on: #5
This commit is contained in:
parent
c37955c51b
commit
f526f5c0aa
99 changed files with 1866 additions and 1470 deletions
|
|
@ -1,27 +1,34 @@
|
|||
### label
|
||||
|
||||
Label is used to provide a name or title for an input field. Label can be placed before or after the field
|
||||
|
||||
[label docs](https://daisyui.com/components/label/)
|
||||
|
||||
#### Class names
|
||||
|
||||
- component: `label`, `floating-label`
|
||||
|
||||
#### Syntax
|
||||
|
||||
For regular label:
|
||||
|
||||
```html
|
||||
<label class="input">
|
||||
<span class="label">{label text}</span>
|
||||
<input type="text" placeholder="Type here" />
|
||||
<span class="label">{label text}</span>
|
||||
<input type="text" placeholder="Type here" />
|
||||
</label>
|
||||
```
|
||||
|
||||
For floating label:
|
||||
|
||||
```html
|
||||
<label class="floating-label">
|
||||
<input type="text" placeholder="Type here" class="input" />
|
||||
<span>{label text}</span>
|
||||
<input type="text" placeholder="Type here" class="input" />
|
||||
<span>{label text}</span>
|
||||
</label>
|
||||
```
|
||||
|
||||
#### Rules
|
||||
|
||||
- The `input` class is for styling the parent element which contains the input field and label, so the label does not have the 'input' class
|
||||
- Use `floating-label` for the parent of an input field and a span that floats above the input field when the field is focused
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue