Web 0.2.0
Atlas
Harbor
Meridian
- Defaultlight16.95 : 1AA 4.5dark16.95 : 1AA 4.5
- measured on 0.2.0
npx shadcn@latest add @maeso/grid- Size
- 1.7 kB gzipmeasured on 0.2.0
- First install
- Add the registry once
Usage
Arrange peer content in responsive columns. Choose columns and gaps that still allow readable content at narrow widths.
Accessibility
Preserve reading order across breakpoints. A visual grid does not automatically need the interactive ARIA grid role.
When to use
Use for repeated cards or aligned content. Use Table for data whose row-column relationships carry meaning.
Install
Add this registry to your project's components.json once, before the first install. Keep your existing settings and other registries.
{
"registries": {
"@maeso": "http://127.0.0.1:4321/r/{name}.json"
}
}Then install the registry's default theme once, and import its sheet in the CSS entry that imports Tailwind. It paints every item from this registry.
npx shadcn@latest add @maeso/maeso@import "./styles/theme.web.css";npx shadcn@latest add @maeso/gridProps
Grid
| Prop | Type | Required | Description |
|---|---|---|---|
| align | AlignItems | undefined | no | |
| as | "article" | "div" | "dl" | "li" | "ol" | "section" | "ul" | undefined | no | The element it draws: a block container, never a control or a custom element. |
| children | ReactNode | no | |
| columns | string | number | undefined | no | A fixed count, or a full `grid-template-columns` value. |
| gap | SpaceStep | undefined | no | |
| min | string | number | undefined | no | The narrowest a card may get before the grid drops a column. |
| rowGap | SpaceStep | undefined | no | |
| style | CSSProperties | undefined | no |
Also accepts every HTMLElement attribute276 props
| Prop | Type | Required | Description |
|---|---|---|---|
| about | string | undefined | no | |
| accessKey | string | undefined | no | |
| aria-activedescendant | string | undefined | no | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
| aria-atomic | Booleanish | undefined | no | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. |
| aria-autocomplete | "both" | "inline" | "list" | "none" | undefined | no | Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. |
| aria-braillelabel | string | undefined | no | Defines a string value that labels the current element, which is intended to be converted into Braille. |
| aria-brailleroledescription | string | undefined | no | Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. |
| aria-busy | Booleanish | undefined | no | |
| aria-checked | "false" | "mixed" | "true" | boolean | undefined | no | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. |
| aria-colcount | number | undefined | no | Defines the total number of columns in a table, grid, or treegrid. |
| aria-colindex | number | undefined | no | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. |
| aria-colindextext | string | undefined | no | Defines a human readable text alternative of aria-colindex. |
| aria-colspan | number | undefined | no | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. |
| aria-controls | string | undefined | no | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
| aria-current | "date" | "false" | "location" | "page" | "step" | "time" | "true" | boolean | undefined | no | Indicates the element that represents the current item within a container or set of related elements. |
| aria-describedby | string | undefined | no | Identifies the element (or elements) that describes the object. |
| aria-description | string | undefined | no | Defines a string value that describes or annotates the current element. |
| aria-details | string | undefined | no | Identifies the element that provides a detailed, extended description for the object. |
| aria-disabled | Booleanish | undefined | no | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. |
| aria-dropeffect | "copy" | "execute" | "link" | "move" | "none" | "popup" | undefined | no | Indicates what functions can be performed when a dragged object is released on the drop target. |
| aria-errormessage | string | undefined | no | Identifies the element that provides an error message for the object. |
| aria-expanded | Booleanish | undefined | no | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
| aria-flowto | string | undefined | no | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. |
| aria-grabbed | Booleanish | undefined | no | Indicates an element's "grabbed" state in a drag-and-drop operation. |
| aria-haspopup | "dialog" | "false" | "grid" | "listbox" | "menu" | "tree" | "true" | boolean | undefined | no | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
| aria-hidden | Booleanish | undefined | no | Indicates whether the element is exposed to an accessibility API. |
| aria-invalid | "false" | "grammar" | "spelling" | "true" | boolean | undefined | no | Indicates the entered value does not conform to the format expected by the application. |
| aria-keyshortcuts | string | undefined | no | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
| aria-label | string | undefined | no | Defines a string value that labels the current element. |
| aria-labelledby | string | undefined | no | Identifies the element (or elements) that labels the current element. |
| aria-level | number | undefined | no | Defines the hierarchical level of an element within a structure. |
| aria-live | "assertive" | "off" | "polite" | undefined | no | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. |
| aria-modal | Booleanish | undefined | no | Indicates whether an element is modal when displayed. |
| aria-multiline | Booleanish | undefined | no | Indicates whether a text box accepts multiple lines of input or only a single line. |
| aria-multiselectable | Booleanish | undefined | no | Indicates that the user may select more than one item from the current selectable descendants. |
| aria-orientation | "horizontal" | "vertical" | undefined | no | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
| aria-owns | string | undefined | no | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. |
| aria-placeholder | string | undefined | no | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. |
| aria-posinset | number | undefined | no | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
| aria-pressed | "false" | "mixed" | "true" | boolean | undefined | no | Indicates the current "pressed" state of toggle buttons. |
| aria-readonly | Booleanish | undefined | no | Indicates that the element is not editable, but is otherwise operable. |
| aria-relevant | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | no | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. |
| aria-required | Booleanish | undefined | no | Indicates that user input is required on the element before a form may be submitted. |
| aria-roledescription | string | undefined | no | Defines a human-readable, author-localized description for the role of an element. |
| aria-rowcount | number | undefined | no | Defines the total number of rows in a table, grid, or treegrid. |
| aria-rowindex | number | undefined | no | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. |
| aria-rowindextext | string | undefined | no | Defines a human readable text alternative of aria-rowindex. |
| aria-rowspan | number | undefined | no | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. |
| aria-selected | Booleanish | undefined | no | Indicates the current "selected" state of various widgets. |
| aria-setsize | number | undefined | no | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
| aria-sort | "ascending" | "descending" | "none" | "other" | undefined | no | Indicates if items in a table or grid are sorted in ascending or descending order. |
| aria-valuemax | number | undefined | no | Defines the maximum allowed value for a range widget. |
| aria-valuemin | number | undefined | no | Defines the minimum allowed value for a range widget. |
| aria-valuenow | number | undefined | no | Defines the current value for a range widget. |
| aria-valuetext | string | undefined | no | Defines the human readable text alternative of aria-valuenow for a range widget. |
| autoCapitalize | "characters" | "none" | "off" | "on" | "sentences" | "words" | (string & {}) | undefined | no | |
| autoCorrect | string | undefined | no | |
| autoFocus | boolean | undefined | no | |
| autoSave | string | undefined | no | |
| className | string | undefined | no | |
| color | string | undefined | no | |
| content | string | undefined | no | |
| contentEditable | "inherit" | "plaintext-only" | Booleanish | undefined | no | |
| contextMenu | string | undefined | no | |
| dangerouslySetInnerHTML | { __html: string | TrustedHTML; } | undefined | no | |
| datatype | string | undefined | no | |
| defaultChecked | boolean | undefined | no | |
| defaultValue | string | number | readonly string[] | undefined | no | |
| dir | string | undefined | no | |
| draggable | Booleanish | undefined | no | |
| enterKeyHint | "done" | "enter" | "go" | "next" | "previous" | "search" | "send" | undefined | no | |
| exportparts | string | undefined | no | |
| hidden | boolean | undefined | no | |
| id | string | undefined | no | |
| inert | boolean | undefined | no | |
| inlist | any | no | |
| inputMode | "decimal" | "email" | "none" | "numeric" | "search" | "tel" | "text" | "url" | undefined | no | Hints at the type of data that might be entered by the user while editing the element or its contents |
| is | string | undefined | no | Specify that a standard HTML element should behave like a defined custom built-in element |
| itemID | string | undefined | no | |
| itemProp | string | undefined | no | |
| itemRef | string | undefined | no | |
| itemScope | boolean | undefined | no | |
| itemType | string | undefined | no | |
| lang | string | undefined | no | |
| nonce | string | undefined | no | |
| onAbort | ReactEventHandler<HTMLElement> | undefined | no | |
| onAbortCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onAnimationEnd | AnimationEventHandler<HTMLElement> | undefined | no | |
| onAnimationEndCapture | AnimationEventHandler<HTMLElement> | undefined | no | |
| onAnimationIteration | AnimationEventHandler<HTMLElement> | undefined | no | |
| onAnimationIterationCapture | AnimationEventHandler<HTMLElement> | undefined | no | |
| onAnimationStart | AnimationEventHandler<HTMLElement> | undefined | no | |
| onAnimationStartCapture | AnimationEventHandler<HTMLElement> | undefined | no | |
| onAuxClick | MouseEventHandler<HTMLElement> | undefined | no | |
| onAuxClickCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onBeforeInput | InputEventHandler<HTMLElement> | undefined | no | |
| onBeforeInputCapture | InputEventHandler<HTMLElement> | undefined | no | |
| onBeforeToggle | ToggleEventHandler<HTMLElement> | undefined | no | |
| onBlur | FocusEventHandler<HTMLElement> | undefined | no | |
| onBlurCapture | FocusEventHandler<HTMLElement> | undefined | no | |
| onCanPlay | ReactEventHandler<HTMLElement> | undefined | no | |
| onCanPlayCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onCanPlayThrough | ReactEventHandler<HTMLElement> | undefined | no | |
| onCanPlayThroughCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onChange | ChangeEventHandler<HTMLElement, Element> | undefined | no | |
| onChangeCapture | ChangeEventHandler<HTMLElement, Element> | undefined | no | |
| onClick | MouseEventHandler<HTMLElement> | undefined | no | |
| onClickCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onCompositionEnd | CompositionEventHandler<HTMLElement> | undefined | no | |
| onCompositionEndCapture | CompositionEventHandler<HTMLElement> | undefined | no | |
| onCompositionStart | CompositionEventHandler<HTMLElement> | undefined | no | |
| onCompositionStartCapture | CompositionEventHandler<HTMLElement> | undefined | no | |
| onCompositionUpdate | CompositionEventHandler<HTMLElement> | undefined | no | |
| onCompositionUpdateCapture | CompositionEventHandler<HTMLElement> | undefined | no | |
| onContextMenu | MouseEventHandler<HTMLElement> | undefined | no | |
| onContextMenuCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onCopy | ClipboardEventHandler<HTMLElement> | undefined | no | |
| onCopyCapture | ClipboardEventHandler<HTMLElement> | undefined | no | |
| onCut | ClipboardEventHandler<HTMLElement> | undefined | no | |
| onCutCapture | ClipboardEventHandler<HTMLElement> | undefined | no | |
| onDoubleClick | MouseEventHandler<HTMLElement> | undefined | no | |
| onDoubleClickCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onDrag | DragEventHandler<HTMLElement> | undefined | no | |
| onDragCapture | DragEventHandler<HTMLElement> | undefined | no | |
| onDragEnd | DragEventHandler<HTMLElement> | undefined | no | |
| onDragEndCapture | DragEventHandler<HTMLElement> | undefined | no | |
| onDragEnter | DragEventHandler<HTMLElement> | undefined | no | |
| onDragEnterCapture | DragEventHandler<HTMLElement> | undefined | no | |
| onDragExit | DragEventHandler<HTMLElement> | undefined | no | |
| onDragExitCapture | DragEventHandler<HTMLElement> | undefined | no | |
| onDragLeave | DragEventHandler<HTMLElement> | undefined | no | |
| onDragLeaveCapture | DragEventHandler<HTMLElement> | undefined | no | |
| onDragOver | DragEventHandler<HTMLElement> | undefined | no | |
| onDragOverCapture | DragEventHandler<HTMLElement> | undefined | no | |
| onDragStart | DragEventHandler<HTMLElement> | undefined | no | |
| onDragStartCapture | DragEventHandler<HTMLElement> | undefined | no | |
| onDrop | DragEventHandler<HTMLElement> | undefined | no | |
| onDropCapture | DragEventHandler<HTMLElement> | undefined | no | |
| onDurationChange | ReactEventHandler<HTMLElement> | undefined | no | |
| onDurationChangeCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onEmptied | ReactEventHandler<HTMLElement> | undefined | no | |
| onEmptiedCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onEncrypted | ReactEventHandler<HTMLElement> | undefined | no | |
| onEncryptedCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onEnded | ReactEventHandler<HTMLElement> | undefined | no | |
| onEndedCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onError | ReactEventHandler<HTMLElement> | undefined | no | |
| onErrorCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onFocus | FocusEventHandler<HTMLElement> | undefined | no | |
| onFocusCapture | FocusEventHandler<HTMLElement> | undefined | no | |
| onGotPointerCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onGotPointerCaptureCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onInput | InputEventHandler<HTMLElement> | undefined | no | |
| onInputCapture | InputEventHandler<HTMLElement> | undefined | no | |
| onInvalid | ReactEventHandler<HTMLElement> | undefined | no | |
| onInvalidCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onKeyDown | KeyboardEventHandler<HTMLElement> | undefined | no | |
| onKeyDownCapture | KeyboardEventHandler<HTMLElement> | undefined | no | |
| onKeyPress | KeyboardEventHandler<HTMLElement> | undefined | no | |
| onKeyPressCapture | KeyboardEventHandler<HTMLElement> | undefined | no | |
| onKeyUp | KeyboardEventHandler<HTMLElement> | undefined | no | |
| onKeyUpCapture | KeyboardEventHandler<HTMLElement> | undefined | no | |
| onLoad | ReactEventHandler<HTMLElement> | undefined | no | |
| onLoadCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onLoadedData | ReactEventHandler<HTMLElement> | undefined | no | |
| onLoadedDataCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onLoadedMetadata | ReactEventHandler<HTMLElement> | undefined | no | |
| onLoadedMetadataCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onLoadStart | ReactEventHandler<HTMLElement> | undefined | no | |
| onLoadStartCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onLostPointerCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onLostPointerCaptureCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onMouseDown | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseDownCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseEnter | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseLeave | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseMove | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseMoveCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseOut | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseOutCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseOver | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseOverCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseUp | MouseEventHandler<HTMLElement> | undefined | no | |
| onMouseUpCapture | MouseEventHandler<HTMLElement> | undefined | no | |
| onPaste | ClipboardEventHandler<HTMLElement> | undefined | no | |
| onPasteCapture | ClipboardEventHandler<HTMLElement> | undefined | no | |
| onPause | ReactEventHandler<HTMLElement> | undefined | no | |
| onPauseCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onPlay | ReactEventHandler<HTMLElement> | undefined | no | |
| onPlayCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onPlaying | ReactEventHandler<HTMLElement> | undefined | no | |
| onPlayingCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onPointerCancel | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerCancelCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerDown | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerDownCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerEnter | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerLeave | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerMove | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerMoveCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerOut | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerOutCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerOver | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerOverCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerUp | PointerEventHandler<HTMLElement> | undefined | no | |
| onPointerUpCapture | PointerEventHandler<HTMLElement> | undefined | no | |
| onProgress | ReactEventHandler<HTMLElement> | undefined | no | |
| onProgressCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onRateChange | ReactEventHandler<HTMLElement> | undefined | no | |
| onRateChangeCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onReset | ReactEventHandler<HTMLElement> | undefined | no | |
| onResetCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onScroll | UIEventHandler<HTMLElement> | undefined | no | |
| onScrollCapture | UIEventHandler<HTMLElement> | undefined | no | |
| onScrollEnd | UIEventHandler<HTMLElement> | undefined | no | |
| onScrollEndCapture | UIEventHandler<HTMLElement> | undefined | no | |
| onSeeked | ReactEventHandler<HTMLElement> | undefined | no | |
| onSeekedCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onSeeking | ReactEventHandler<HTMLElement> | undefined | no | |
| onSeekingCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onSelect | ReactEventHandler<HTMLElement> | undefined | no | |
| onSelectCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onStalled | ReactEventHandler<HTMLElement> | undefined | no | |
| onStalledCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onSubmit | SubmitEventHandler<HTMLElement> | undefined | no | |
| onSubmitCapture | SubmitEventHandler<HTMLElement> | undefined | no | |
| onSuspend | ReactEventHandler<HTMLElement> | undefined | no | |
| onSuspendCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onTimeUpdate | ReactEventHandler<HTMLElement> | undefined | no | |
| onTimeUpdateCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onToggle | ToggleEventHandler<HTMLElement> | undefined | no | |
| onTouchCancel | TouchEventHandler<HTMLElement> | undefined | no | |
| onTouchCancelCapture | TouchEventHandler<HTMLElement> | undefined | no | |
| onTouchEnd | TouchEventHandler<HTMLElement> | undefined | no | |
| onTouchEndCapture | TouchEventHandler<HTMLElement> | undefined | no | |
| onTouchMove | TouchEventHandler<HTMLElement> | undefined | no | |
| onTouchMoveCapture | TouchEventHandler<HTMLElement> | undefined | no | |
| onTouchStart | TouchEventHandler<HTMLElement> | undefined | no | |
| onTouchStartCapture | TouchEventHandler<HTMLElement> | undefined | no | |
| onTransitionCancel | TransitionEventHandler<HTMLElement> | undefined | no | |
| onTransitionCancelCapture | TransitionEventHandler<HTMLElement> | undefined | no | |
| onTransitionEnd | TransitionEventHandler<HTMLElement> | undefined | no | |
| onTransitionEndCapture | TransitionEventHandler<HTMLElement> | undefined | no | |
| onTransitionRun | TransitionEventHandler<HTMLElement> | undefined | no | |
| onTransitionRunCapture | TransitionEventHandler<HTMLElement> | undefined | no | |
| onTransitionStart | TransitionEventHandler<HTMLElement> | undefined | no | |
| onTransitionStartCapture | TransitionEventHandler<HTMLElement> | undefined | no | |
| onVolumeChange | ReactEventHandler<HTMLElement> | undefined | no | |
| onVolumeChangeCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onWaiting | ReactEventHandler<HTMLElement> | undefined | no | |
| onWaitingCapture | ReactEventHandler<HTMLElement> | undefined | no | |
| onWheel | WheelEventHandler<HTMLElement> | undefined | no | |
| onWheelCapture | WheelEventHandler<HTMLElement> | undefined | no | |
| part | string | undefined | no | |
| popover | "" | "auto" | "hint" | "manual" | undefined | no | |
| popoverTarget | string | undefined | no | |
| popoverTargetAction | "hide" | "show" | "toggle" | undefined | no | |
| prefix | string | undefined | no | |
| property | string | undefined | no | |
| radioGroup | string | undefined | no | |
| rel | string | undefined | no | |
| resource | string | undefined | no | |
| results | number | undefined | no | |
| rev | string | undefined | no | |
| role | AriaRole | undefined | no | |
| security | string | undefined | no | |
| slot | string | undefined | no | |
| spellCheck | Booleanish | undefined | no | |
| suppressContentEditableWarning | boolean | undefined | no | |
| suppressHydrationWarning | boolean | undefined | no | |
| tabIndex | number | undefined | no | |
| title | string | undefined | no | |
| translate | "no" | "yes" | undefined | no | |
| typeof | string | undefined | no | |
| unselectable | "off" | "on" | undefined | no | |
| vocab | string | undefined | no |
Proof
Contrast
measured on 0.2.0
| State | Foreground | Background | Ratio | Floor |
|---|---|---|---|---|
| default | rgb(7 21 34) | rgb(248 245 240) | 16.95 | AA 4.5 |
| default (dark) | rgb(248 245 240) | rgb(7 21 34) | 16.95 | AA 4.5 |
Size
1724 gzip bytes · measured on 0.2.0
Example
import { Grid } from "@/components/ui/_kit/layout/grid/Grid";
const Example = () => (
<div className="w-full max-w-105">
<Grid min={120} gap={2}>
<div className="px-3 py-2.5 border border-border rounded-none bg-surface-base text-ink text-(length:--text-sm)">
Atlas
</div>
<div className="px-3 py-2.5 border border-border rounded-none bg-surface-base text-ink text-(length:--text-sm)">
Harbor
</div>
<div className="px-3 py-2.5 border border-border rounded-none bg-surface-base text-ink text-(length:--text-sm)">
Meridian
</div>
</Grid>
</div>
);
export default Example;not on native yet