LayoutGrid

The grid pattern can be used to group a set of interactive elements, such as links, buttons, or checkboxes. Since only one element in the entire grid is included in the tab sequence, grouping with a grid can dramatically reduce the number of tab stops on a page.
One example of this is if you’re using Chrome, you can go to home page, try customizing your page (bottom right corner) using keyboard only. They use grid pattern for their background selection.
View code

Accessibility

LayoutGridCells are navigatable through keyboard Arrow Up, Down, Left, and Right. Holding Shift key will jump to last or first cell accordingly. Note that you need to ensure each row should be wrapped in an element with role row to ensure correct accessibility attributes.

References

API

LayoutGrid
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
LayoutGridCell
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
colnumber
disableGridboolean
disabledboolean
Equivalent to button's disabled property.
keyboardClickKeysstring[]
onBlurFocusEventHandler<HTMLDivElement>
onClickMouseEventHandler<HTMLDivElement>
onGridFocus() => void
onKeyDownKeyboardEventHandler<HTMLDivElement>
onKeyUpKeyboardEventHandler<HTMLDivElement>
onMouseDownMouseEventHandler<HTMLDivElement>
onMouseLeaveMouseEventHandler<HTMLDivElement>
onMouseUpMouseEventHandler<HTMLDivElement>
onReleaseEventHandler<SyntheticEvent<HTMLDivElement, Event>>
Callback that's triggered after click i.e. mouseup and keyup of enter or space.
onTouchEndTouchEventHandler<HTMLDivElement>
onTouchStartTouchEventHandler<HTMLDivElement>
preventScrollboolean
rownumber
    Accessibility
    Accessibility
    References
    References
    API
    API
    LayoutGrid
    LayoutGrid
    LayoutGridCell
    LayoutGridCell
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.

Copyright © 2018-2025 Sea Labs