check
Code copied to clipboard.
close
menu

Column

Columns are flex boxes that flow vertically and have convenience props for controlling basic props like align-items and gap.

Example Instance

<Column
  alignItems="center"
  justifyContent="start"
  gap="md" 
>
  {children}
 </Column>
content_copy
warning
Note: The above snippet omits import statements and surrounding markup. It's assumed you'd be pasting this inside the return block of an existing functional component.

Installation

Next.js

Note: Other React frameworks are not currently supported, but they might still work. Try at your own risk.

Method Instructions
LiftKit CLI
From any Next.js project, run the following command in your terminal.
npm run add column
content_copy
Github open_in_new View on Github

Props

Unique

Props unique to this component.

Name Required Type Description Default Val
alignItems no "start" | "center" | "end" | "stretch" Sets card padding equal to the font size of the passed LkFontClass. “body”
defaultChildBehavior no "auto-grow" | "auto-shrink" | "ignoreFlexRules" | "ignoreIntrinsicSize" Determines the default manner in which children elements will behave. undefined
gap no LkUnit Sets the gap between column children. “md”
justifyContent no "start" | "center" | "end" | "space-between" | "space-around" Changes the overall style of the card “fill”
wrapChildren no boolean Turns wrapping either on or off. false

Common

Props with globally-defined behavior that are used in multiple components.

Common PropsStatus
{children}Supported
Native HTML attributesSupported