Description Usage Arguments Functions See Also
Forms exist everywhere user input is needed. These are the general containers that comprise forms.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | bulma_form(..., tag = tags$form)
bulma_form_field(
...,
attach = FALSE,
attach_align = c("left", "centered", "right"),
grouped = FALSE,
grouped_align = c("left", "centered", "right"),
grouped_multiline = FALSE,
tag = tags$div
)
bulma_form_horizontal_field(..., tag = tags$div)
bulma_form_horizontal_field_label(
...,
size = c("small", "medium", "large"),
outer_tag = tags$div,
inner_tag = tags$label
)
bulma_form_horizontal_field_body(..., tag = tags$div)
bulma_form_fieldset(..., disabled = FALSE, tag = tags$fieldset)
bulma_form_control(
...,
icons = NULL,
expanded = FALSE,
loading = FALSE,
tag = htmltools::tags$div
)
bulma_form_label(..., tag = tags$label)
bulma_form_help(
...,
color = c("primary", "link", "info", "success", "warning", "danger"),
tag = tags$p
)
bulma_form_icon(
icon,
...,
align = c("left", "right"),
size = c("small", "normal", "medium", "large"),
color = c("primary", "link", "info", "success", "warning", "danger", "white",
"black", "light", "dark", "black-bis", "black-ter", "grey-darker", "grey-dark",
"grey-light", "grey-lighter", "white-ter", "white-bis"),
tag = tags$span
)
|
... |
(tags) content |
tag |
(fn) default HTML content |
attach |
(flag) whether the controls here are attached to each other. |
attach_align |
(string) if attached, then alignment of the controls |
grouped |
(flag) controls are grouped in some way |
grouped_align |
(string) if grouped, alignment of the group |
grouped_multiline |
(flag) whether the group can wrap around; ideal for long lists of controls. |
outer_tag, inner_tag |
(fun) functions for the outer and inner tag. |
disabled |
(flag) disabled all the fields in this fieldset |
icons |
(str) if there are any |
expanded |
(flg) whether the control stretches fully |
loading |
(flg) whether the elements are loading |
icon |
icon class for the icon set |
align, size, color |
styling parameters |
bulma_form_field
: field container contains a bulma_form_control()
,
bulma_form_label()
, and bulma_form_help()
.
bulma_form_horizontal_field
: horizontal styling, should contain bulma_form_horizontal_field_label()
and
bulma_form_horizontal_field_body()
.
bulma_form_horizontal_field_label
: field label. You can leave this blank to make it appear such that the label
above is inherited. should contain bulma_form_label()
.
bulma_form_horizontal_field_body
: contains the controls corresponding to the label.
Contains bulma_form_field()
.
bulma_form_fieldset
: this can contain different fields and can all be
disabled in one fell swoop through disabled = TRUE
.
bulma_form_control
: contains the actual inputs in the field.
bulma_form_label
: label text inside a bulma_form_field()
bulma_form_help
: help text inside a bulma_form_field()
.
bulma_form_icon
: Icons to insert into the inputs
Other Bulma Form Components:
bulma_form_button()
,
bulma_form_checkbox()
,
bulma_form_file()
,
bulma_form_input()
,
bulma_form_radio()
,
bulma_form_select()
,
bulma_form_textarea()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.