4.33.0

Tray

Trays are visual containers for boxes, establishing a common spacing and border assembly for boxes contained within

Demo

API

Tag

Name Description
<s-tray>

Custom HTML tag, accepts content

Classes

Name Description

Demo

API

Tag

Name
<STray>

Classes

Name Description

Skylab React links

General information about using our React package

Guidelines

Layout

By design, the <s-tray> imposes no padding or margin. Space around the container can be managed by applying a util class.

<s-tray> is intended to have multiple <s-box> elements as direct descendants. These <s-box> descendants inherit all styles applied to standard <s-box>, with the exception of sibling margins applied to s-box + s-box, which is removed within the tray.

<s-box> borders are consolidated within the tray to appear as a contiguous group. Bottom border width and radius are reset to zero for all <s-box> elements, except the final of a set, where only top border radius is removed.

Restrictions

<s-box> variations are achieved by way of general sibling selectors. Some client frameworks will encapsulate the child <s-box> in template tags by default, and break the sibling composition. Developers should take special care in template construction to retain the appropriate sibling structure.

Design

Design resources can be found on the Skylab design documentation site: skylab.avalara.com