argonImage: Create a Boostrap 4 image container

Description Usage Arguments Author(s) Examples

View source: R/argonImage.R

Description

Build an argon image container

Usage

1
2
3
4
5
6
7
8
argonImage(
  src = NULL,
  url = NULL,
  floating = FALSE,
  card_mode = FALSE,
  hover_lift = FALSE,
  width = NULL
)

Arguments

src

Image source or path.

url

Only with card_mode on. Optional external link.

floating

Whether to apply a floating effect. FALSE by default.

card_mode

Whether to include the image in a card wrapper. FALSE by default.

hover_lift

Whether to apply a lift effect on hover. FALSE by default. Not compatible with floating. Only if card_mode is TRUE.

width

Image manual width in px.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

1
2
3
4
5
6
7
8
if (interactive()) {
 library(argonR)
 argonImage(
  floating = TRUE,
  src = "https://demos.creative-tim.com/argon-design-system/assets/img/ill/ill-2.svg",
  hover_lift = TRUE
 )
}

argonR documentation built on Dec. 1, 2019, 1:15 a.m.