<div class="form-control mb-5 w-full max-w-xs">
    <label class="label cursor-pointer" for="complexNameForLabel">
        <span class="label-text">
            Complex Name For Label:</span>
    </label>
    <input type="text" class="input input-bordered" name="complexNameForLabel" id="complexNameForLabel" placeholder="My name" value="" />

    <div class="label"> <span class="label-text-alt text-warning">Hint</span>
    </div>
</div>
@jrmc.form.control({ name: 'complexNameForLabel', class: 'w-full max-w-xs', hint: 'Hint' })
  @!jrmc.form.input({placeholder: 'My name', class: 'input-bordered' })
@end
  • Handle: @control-default-label
  • Preview:
  • Filesystem Path: fractal/components/03-form/09-control/07-control-default-label.edge

Form Control

Doc : daisyui control

Control is a container field.

Class name Type
form-control Component Container element