Certain props are shared across all form-related components, and you can find them in the form wrapper.
By using the class prop, you can apply custom classes or Tailwind CSS classes to customize the appearance and behavior of the gallery, allowing for flexible design changes.
Number component
<.number_field />
Number field controls prop
The
controls
attribute is a string that manages the visibility of the number input controls (up/down arrows). It has three options:
default
,
fixed
, and
hide
. By default, the controls are shown as usual. When set to
fixed
, the controls remain visible but are fixed in place, and when set to
hide
, the number input controls are removed entirely, providing a cleaner appearance for cases where the arrows aren't needed. This option allows for more flexible styling and customization of number input fields.
<.number_field controls="hide" /> <.number_field controls="fixed" />