fd_grid: Foundation UI Grid

Description Usage Arguments Source Examples

View source: R/grid.R

Description

The UI grid is based off Foundation's XY-Grid. This allows the grid to either be set by columns or rows.

Usage

1
2
fd_grid(..., direction = "x", margin = "", padding = "",
  n_cells = NULL)

Arguments

...

Elements to include within the grid

direction

Which direction should the elements go, can either be x or y

margin, padding

Which direction

n_cells

Only works when working with columns. The number of cells in each column. The default will be that a cell takes up the full width.

Source

https://foundation.zurb.com/sites/docs/xy-grid.html

Examples

1
2
3
4
5
6
7
8
fd_container(
  fd_grid(
    n_cells = 3,
    fd_cell("Cell 1"),
    fd_cell("Cell 2"),
    fd_cell("Cell 3")
  )
)

ashbaldry/shinyfoundation documentation built on Nov. 3, 2019, 1:57 p.m.