Form Elements (Input Groups)
Input Group Inset
.input-group-inset
,.input-group-inset-before
,.input-group-inset-after
,.input-group-inset-item
,.input-group-inset-item-before
, and.input-group-inset-item-after
.
.input-group-inset
component when a button or link inside is focused, add the focus
class on .input-group-item
. Focus Box Shadows are only supported in .input-group-inset
with .input-group-item.focus
. .input-prepend
and .input-append
aren't supported with .input-group-inset
.
Input Group Password
A pattern for displaying the content inside a password input. Use
.input-text-label
inside.input-group-inset-item
to display specific content for.form-control[type="text"]
and.input-password-label
for.form-control[type="password"]
.
Form Control Tag Group
A pattern for placing
label
s in an input. See Form Elements (Multi Select) for fullclay-multiselect
markup.
focus
must be managed when interacting with this component. It must be added/removed on form-control-tag-group
when any item in form-control-tag-group
is focused/blurred.If
form-control-tag-group
is clicked, form-control-inset
must be focused.
Form Control Tag Group With Contenteditable Elements
The major advantage of using
contenteditable
elements over an input is allowing text to be separated by newline and having the "input" grow with the text. One caveat iswidth: 100%;
or.w-100
must be added on.form-control-inset
when a newline is entered and removed when there are no newlines present.
.form-control-hidden
with the text inside the contenteditable
element. It also requires careful management of the focus state as well as the tabindex
on .form-control-hidden
.