Silvi

Section

A heading over a group of components, laid out like the page or three across.

<k.Section> puts a heading, a description and an “(i)” over the components inside it. Inside, components are laid out as on the page: two half-row components side by side, a whole-row component on its own. With columns={3}, half-row components sit three across when each gets about 380 pixels, else two; leave out the title for a bare row of three.

Example

Regions

How the regions compare.

Sales

NorthSouthEast12095180

Orders

NorthSouthEast14916

Props

Name Type Required Default Meaning
key text yes A name unique on the page
title text, or a function of the data no The heading; without it, no heading row
description text, or a function of the data no A muted line under the heading
info { what, rules, sql } no The section’s “(i)”
columns 2 or 3 no 2 Half-row components two or three across
children components yes The components inside

A section holds only components. It always takes the whole row.

Checks

A prop the section does not take, or a columns other than 2 or 3, fails the typecheck.