Skip to main content

Tile

Tiles are customizable buttons that allow staff to complete actions quickly. Think of them as shortcuts--adding a 10% discount to an order, for example. Tiles provide contextual information and let merchants quickly access workflows, actions, and information from the smart grid and the top of detail pages. They're dynamic and can change based on surrounding context, such as what's in the cart.

boolean
Default: false

Disables the Button meaning it cannot be clicked or receive focus.

string
Default: ''

A title that describes the content of the Tile.

string

A unique identifier for the element.

number

A numeric indicator rendered within the Tile (for example, a count or a step number).

  • When provided, the indicator is displayed inside the tile.
  • Intended for small integers. It may clamp, truncate, or abbreviate larger values.
string
Default: ''

Supporting text displayed below the heading.

<, 'auto' | 'neutral' | 'accent'>
Default: 'auto'

Sets the tone of the Tile, based on the intention of the information being conveyed.

Was this section helpful?

(event: <"s-divider">) => void
Was this section helpful?

Code

<s-tile heading="Title" subheading="Subtitle" itemCount="2" tone="accent"></s-tile>

<s-tile heading="Title" subheading="Subtitle" tone="accent"></s-tile>

<s-tile heading="Title" subheading="Subtitle" disabled></s-tile>

Preview