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 name | Description |
|---|---|
| component | The components root element. |
Props
| Prop name | Description |
|---|---|
| tag | tag accepts the type Layout, see types. The default value is div |
Slots
| Slot name | Description |
|---|---|
| default | The 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.
Barebones Components