10.12.0

Layouts




Flex

Default

Row


1
2
3
4


Column


1
2
3
4

Prop
  • orientation | Type: String | Values: row | column
  • Inline

    Row


    1
    2
    3
    4


    Column


    1
    2
    3
    4

    Prop
  • inline | Type: Boolean

  • By default this prop is false which sets the flex container to take up the full width of its parent container. When the prop is set to true the flex container sets its width to be the same size as the containing items.

  • Reverse

    Row


    1
    2
    3
    4


    Column


    1
    2
    3
    4

    Prop
  • reverse | Type: Boolean

  • When set to true this prop will reverse the order of items in the flex container.

  • Wrap

    Wrap


    1
    2
    3
    4
    5
    6
    7
    8
    9
    10


    No Wrap


    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    Prop
  • wrap | Type: Boolean

  • When set to true this prop will move the next item in flex container to a new line if there is no more room.

  • Spacing

    None


    1
    2
    3
    4


    Around


    1
    2
    3
    4


    Evenly


    1
    2
    3
    4


    Between


    1
    2
    3
    4

    Prop

    ATTENTION - the spacing prop will be deprecated & renamed in the future.

  • Deprecated Prop: spacing | Type: String | Values: none | around | evenly | between

  • New Prop: justify | Type: String | Values: none | around | evenly | between

  • Justify

    Row


    1
    2
    3
    4


    1
    2
    3
    4


    1
    2
    3
    4


    Column


    1
    2
    3
    4


    1
    2
    3
    4


    1
    2
    3
    4

    Prop

    ATTENTION - the horizontal prop will be deprecated & renamed in the future.

  • Deprecated Prop: horizontal | Type: String | Values: left | center | right | stretch | none

  • New Prop: justify | Type: String | Values: start | center | end | | none

  • Align

    Row


    1
    2
    3
    4


    1
    2
    3
    4


    1
    2
    3
    4


    1
    2
    3
    4


    1
    2
    3
    4


    Column


    1
    2
    3
    4


    1
    2
    3
    4


    1
    2
    3
    4


    1
    2
    3
    4

    Prop

    ATTENTION - the vertical prop will be deprecated & renamed in the future.

  • Deprecated Prop: vertical | Type: String | Values: top | center | bottom | stretch | baseline | none

  • New Prop: align | Type: String | Values: start | center | end | stretch | baseline | none

  • Gap

    Row


    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39


    Column Gap


    1
    2
    3
    4


    Row Gap


    1
    2
    3
    4

    Prop
  • gap | row_gap | rowGap | column_gap | columnGap | Type: String | Values: xs | sm | md | lg | xl | none

  • Setting the gap prop sets the rowgap || rowGap and the columngap || columnGap props to the same size and creates equal space within a flex container.

  • Setting the row_gap || rowGap prop creates space between rows in a flex container.

  • Setting the column_gap || columnGap prop creates space between columns in a flex container.

  • Flex Item

    Grow


    I'm growing
    1
    2
    3


    Shrink


    I'm shrinking
    1
    2
    3


    Fixed Size


    I'm 250px
    1
    2
    3


    Flex


    1
    2
    3
    4

    Props
  • flex | Type: String | Values: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
  • fixed_size | Type: String | Values: Any CSS px or % value
  • grow | Type: Boolean
  • shrink | Type: Boolean

  • Flex is a short hand to set the flex item to take up (x) amount of available space

  • Setting Flex to 1 is equal to setting the grow & shrink prop to true

  • Setting Flex to 0 is equal to setting the grow & shrink prop to false

  • If grow & shrink are true, grow will take precedence an the flex item will take up as much space as possible, then if other elements are added shrink would allow other items to squish inside the flex container

  • Layout

    Colors

    Light
    Body


    Dark
    Body


    Gradient
    Body

    Transparent

    Side
    Body

    Sizes

    Side
    Body


    Side
    Body


    Side
    Body


    Side
    Body


    Side
    Body

    Collection Layout

    Card content

    Title 4

    Title 3

    Anna Black

    Remodeling Consultant

    Title 4

    Title 2

    Title 1

    Card content
    Card content

    Anna Black

    Remodeling Consultant
    Card content

    Title 4

    Title 3

    Title 2

    Title 1


    Layout can leverage the max-width property. Learn more in our visual guidelines.

    Collection Detail Layout

    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content
    Card content

    The left element on Collection Detail can be used for things such as navigation or secondary content to the element on the right. The right content can be used the same way that you would use Collection. The element on the right should be the primary focus and can be used for repeating elements such as cards.

    Kanban Layout

    Queued
    Kanban Item
    In Progress
    Kanban Item
    Kanban Item
    Kanban Item
    Validation
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Kanban Item
    Done
    Kanban Item
    Kanban Item
    Kanban Item
    OKRs
    Kanban Item
    Kanban Item
    Kanban Item
    Bugs
    Kanban Item
    Kanban Item
    Kanban Item
    Another Column
    Kanban Item
    Kanban Item
    Kanban Item
    Another Column
    Kanban Item
    Kanban Item
    Kanban Item
    A Final Column
    Kanban Item
    Kanban Item
    Kanban Item

    Content Layout

    Header
    Sidebar

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis.
    Body

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis. Pellentesque luctus vel mauris non aliquam. Mauris hendrerit mattis porttitor. Curabitur vehicula justo non ex consectetur commodo. Quisque posuere aliquet quam. Maecenas malesuada magna mauris, ac tempor metus euismod at.

    Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.

    Masonry Layout