Checkbox

Renders a checkbox input with SaladUI styling.

Read more Read less

Options

  • :id - The id to apply to the checkbox
  • :name - The name to apply to the input field
  • :value - The current value of the checkbox
  • :default-value - The default value of the checkbox, either true, false, “true”, “false”
  • :disabled - Whether the checkbox is disabled
  • :field - A Phoenix form field
  • :class - Additional classes to add to the checkbox
Attribute Type Documentation Default Value
name :any
value :any
default-value :any false
field %FormField{}
class :string
rest :global