bulma_form_file: Bulma Form: File

Description Usage Arguments See Also

View source: R/bulma-form-file.R

Description

A custom file upload input, without JavaScript.

File

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
bulma_form_file(
  ...,
  name = stri_rand_strings(1L, 16L),
  icon = "fas fa-upload",
  label = NULL,
  file_name = NULL,
  align = c("left", "centered", "right"),
  color = c("primary", "link", "info", "success", "warning", "danger", "white",
    "black", "light", "dark"),
  size = c("small", "normal", "medium", "large"),
  state = c("hovered", "focused", "active", "loading", "static"),
  boxed = FALSE,
  fullwidth = FALSE,
  outer_tag = tags$div,
  inner_tag = tags$label
)

Arguments

...

(tag) content

name

(str) name identifier, defaults to random string.

icon

(str) icon of the upload button, defaults to FontAwesome.

label

(str) label of the upload button

file_name

(str) the file name on the side when uploaded

align, color, size, state, boxed

styling

fullwidth

(flg) whether this is expanded

outer_tag, inner_tag

(fun) default html tag

See Also

Other Bulma Form Components: bulma_form_button(), bulma_form_checkbox(), bulma_form_input(), bulma_form_radio(), bulma_form_select(), bulma_form_textarea(), bulma_form()


tjpalanca/bulma.R documentation built on Dec. 23, 2021, 10:58 a.m.