Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    Grid

    An equal-column, responsive grid for page regions and widget layouts, with a cell component (Grid.Item).

    Storybook
    Storybook
    Source
    Source

    Grid and Grid.Item are not interactive. By default they render a <div>; their state does not change with mouse, keyboard or touch.

    State Support Visual change
    Default Yes Equal-column grid; columns from columns, gap from gap
    Hover None None; the element does not react to the pointer
    Pressed None None; the element cannot be clicked
    Focus None None; the element takes no focus and draws no focus ring
    Disabled None None; it has no action to disable
    Selected None None; it cannot be selected

    Grid has no fixed size of its own; the columns share the width of the container equally.

    Property Value Token
    Number of columns (columns) 1 to 12; default 1 -
    Breakpoint: base Below 1024 px -
    Breakpoint: md 1024 px and up (Tailwind lg:) -
    Breakpoint: lg 1440 px and up (min-[90rem]:) -
    Column and row gap (gap) none 0, xxs 2, xs 4, sm 6, md 8, lg 12, xl 16, 2xl 20, 3xl 24, 4xl 32, 5xl 40, 6xl 48, 7xl 56 px; default lg space-{name}
    Cell width (span) 1 to 12 columns or full (whole row) -

    Values are shown for the selected brand; change the brand from the top bar.

    TokenLight modeDark mode
    --bigbang-space-xs4px4px4px4px4px4px
    --bigbang-space-sm6px6px6px6px6px6px
    --bigbang-space-md8px8px8px8px8px8px
    --bigbang-space-lg12px12px12px12px12px12px
    --bigbang-space-xl16px16px16px16px16px16px
    --bigbang-space-2xl20px20px20px20px20px20px
    --bigbang-space-3xl24px24px24px24px24px24px
    --bigbang-space-4xl32px32px32px32px32px32px
    Interaction Motion Reduced motion
    Hover, press, focus None: Grid is not interactive Nothing to reduce
    Enter and exit None: Grid uses no duration or easing token; content appears and leaves at once Nothing to reduce
    Layout change None: the layout changes without a transition when the viewport width changes Nothing to reduce

    Grid uses no motion preset; the motion of its children belongs to their own components. For details, see the Motion page.