Box

Bordered container for grouping content. Pass a title to render a full-width titled panel with an uppercase header bar.

Example

Content inside a box

Titled Box

top permitted domains
Content inside a titled box. The header bar spans the full width with a dotted bottom border.

Props

PropTypeDefaultDescription
titlestringIf set, renders a full-width uppercase title bar at the top of the box
classstringAdditional CSS classes
childrenSnippetBox content

Usage

<script>
  import { Box } from '@chrissnell/chonky-ui';
</script>

<Box>
  <p>Grouped content here</p>
</Box>

<Box title="query types">
  <p>Content below a titled header bar</p>
</Box>