class RatatuiRuby::Widgets::Row

A styled table row combining cells with optional row-level styling.

By default, Table rows are arrays of cell content. For more control over styling individual rows, wrap the cells in a Row object to apply row-level style.

The cells can be Strings, Text::Spans, Text::Lines, Paragraphs, or Cells. The style applies to the entire row background.

Examples

# Row with red background
Row.new(cells: ["Error", "Something went wrong"], style: Style.new(bg: :red))

# Row with styled cells and custom height
Row.new(
  cells: [
    Text::Span.new(content: "Status", style: Style.new(modifiers: [:bold])),
    Text::Span.new(content: "OK", style: Style.new(fg: :green))
  ],
  height: 2
)