Anchor Design System

Grid row3.0

The anchor-grid-row is a non-visual component that serves as a flexible grid row for layout purposes. It's designed to be responsive.

Installation

npm i @tryg/ui-library

Usage

Individual only imports the desired component, and only needs to be included once within the application. Which is beneficial to keep the application size small.

Webcomponent
<script type="module">
  import { defineCustomElement } from '@tryg/ui-library/dist/components/anchor-container';
  defineCustomElement();
</script>
<anchor-grid-row>This is an error message.</anchor-grid-row>

Global only needs to be defined once in the application, but it will import all components even the ones that are not in use..

Webcomponent
<script type="module">
  import { defineCustomElements } from '@tryg/ui-library/dist/loader';
  defineCustomElements();
</script>
<anchor-grid-row>This is an error message.</anchor-grid-row>

API

anchor-grid-row

CSS Custom Properties

NameDescription
--grid-row-columns-lgSet the number of columns in the grid at the large screen size.
--grid-row-columns-mdSet the number of columns in the grid at the medium screen size.
--grid-row-columns-smSet the number of columns in the grid at the small screen size.
--grid-row-columns-xlSet the number of columns in the grid at the extra large screen size.
--grid-row-columns-xsSet the number of columns in the grid at the smallest screen size.
--grid-row-gutter-lgSet the space between rows in the grid at the large screen size.
--grid-row-gutter-mdSet the space between rows in the grid at the medium screen size.
--grid-row-gutter-smSet the space between rows in the grid at the small screen size.
--grid-row-gutter-xlSet the space between rows in the grid at the extra large screen size.
--grid-row-gutter-xsSet the space between rows in the grid at the smallest screen size.
--grid-row-horizontal-gap-lgSet the space between columns in the grid at the large screen size.
--grid-row-horizontal-gap-mdSet the space between columns in the grid at the medium screen size.
--grid-row-horizontal-gap-smSet the space between columns in the grid at the small screen size.
--grid-row-horizontal-gap-xlSet the space between columns in the grid at the extra large screen size.
--grid-row-horizontal-gap-xsSet the space between columns in the grid at the smallest screen size.

Built with StencilJS

On this page