Skip to main content
Use the Row and Stack components to arrange content horizontally (Row) or vertically (Stack). These components are especially useful for building dashboards and responsive layouts. Combined with Evidence’s charts, tables, and inputs, they let you build an interactive data visualization dashboard that viewers can filter and explore.

Row

  • Arranges elements in a horizontal row.
  • Elements will wrap to the next line if there isn’t enough space.
  • Useful for placing charts, tables, or values side by side.

Props

  • align (string, default: stretch): How to vertically align items. Options: top, center, bottom, or stretch.

Example


Stack

  • Arranges elements in a vertical stack.
  • Useful for grouping related elements in a column within a row.
  • Will have no effect on components that are already vertically aligned.

Props

  • align (string, default: stretch): How to horizontally align items. Options: left, center, right, or stretch.

Tip

  • Use the align prop to control alignment of elements within the layout.
  • Rows wrap their elements if there isn’t enough horizontal space. This ensures that the layouts look good on all screen sizes. Each component has a default minimum width.
  • Stacks always arrange elements vertically.