Skip to content
On this page

WARNING

While the documentation is fairly complete, it is still in first draft.

Column (BonesColumn)

Overview

The Barebones Column component is designed to slot inside the Barebones Grid component.

Component parts

Part nameDescription
componentThe components root element.

Props

Prop nameDescription
tagtag accepts the type Layout, see types. The default value is div

Slots

Slot nameDescription
defaultThe default slot is provided by Vue

Prop Types

Layout

export type Layout =
  | "main"
  | "header"
  | "footer"
  | "section"
  | "main"
  | "div"
  | "article"
  | "ul"
  | "li"
  | "aside"
  | "ol";

Component Type

export interface Column {
  parts: Parts;
}

Examples

WARNING

Examples use tailwind/salient theme, to use this theme you may add it using the theme npx command and installing Tailwind JIT in your application. Read more about themes.

Code

<BonesGrid>
  <BonesColumn :span="['6', 'md-3']"></BonesColumn>
  <BonesColumn :span="['6', 'md-3']"></BonesColumn>
  <BonesColumn :span="['md-6']"></BonesColumn>
  <BonesColumn></BonesColumn>
</BonesGrid>

Output

WARNING

For display purposed padding and background colors have ben added to the grid and column components.