Input
I guess we *have* to accept input somehow
Includes a Ruby component and corresponding Rails helper
RubyExample
<%= nk_input %>
Form use
To use in forms, it's easiest to use the Form Builder.
<%= nk_form_with model: @user do |f| %>
<%= f.field :name %>
<%= f.field :email, as: :email %>
<% end %>
Usage
NB: Using through FormBuilder#field
is recommended. See Field docs.
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |
| ||
---|---|---|
Property | Default | Description |
**attrs | HTML attributes for <input> element |