File: value-box.md

package info (click to toggle)
r-cran-bslib 0.9.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,412 kB
  • sloc: javascript: 13,349; makefile: 33; sh: 23
file content (65 lines) | stat: -rw-r--r-- 1,181 bytes parent folder | download
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# print.bslib_showcase_layout()

    Code
      showcase_left_center()
    Output
      <showcase-left-center>
      width:      30%   [fs: 1fr]
      height:     ---   [fs: ---]
      max_height: 100px [fs: 67%]

---

    Code
      showcase_top_right()
    Output
      <showcase-top-right>
      width:      40%  [fs: 1fr]
      height:     ---  [fs: ---]
      max_height: 75px [fs: 67%]

---

    Code
      showcase_bottom()
    Output
      <showcase-bottom>
      width:      100%  [fs: ---]
      height:     auto  [fs: 2fr]
      max_height: 100px [fs: ---]

# value_box_theme() print method

    Code
      value_box_theme("bg-gradient-blue-purple")
    Output
      <bslib_value_box_theme>
      theme: bg-gradient-blue-purple

---

    Code
      value_box_theme("red", fg = "white")
    Output
      <bslib_value_box_theme>
      theme: bg-red
      color: white

---

    Code
      value_box_theme(bg = "black")
    Output
      <bslib_value_box_theme>
      background-color: black
      color: #FFFFFF

---

    Code
      value_box_theme("text-red", bg = "#FFE8E8")
    Output
      <bslib_value_box_theme>
      theme: text-red
      background-color: #FFE8E8