<div class="form-control mb-5">
    <label class="label cursor-pointer" for="sampleError">
        <span class="label-text">
            Your name</span>
    </label>
    <input type="text" class="input input-bordered" name="sampleError" id="sampleError" placeholder="My name" value="" />

    <div class="label"> <span class="label-text-alt text-error">This field is required</span>
    </div>
</div>
@jrmc.form.control({ name: 'sampleError', label: 'Your name' })
  @!jrmc.form.input({placeholder: 'My name', class: 'input-bordered' })
@end
  • Handle: @control-error
  • Preview:
  • Filesystem Path: fractal/components/03-form/09-control/05-control-error.edge

Form Control

Doc : daisyui control

Control is a container field.

Class name Type
form-control Component Container element