Tile
The tile component displays interactive buttons for the POS smart grid. Use tiles as customizable shortcuts that allow merchants to quickly access workflows, actions, and information from the smart grid.
Tiles can change their appearance, content, and enabled state based on surrounding context such as cart contents, device conditions, or runtime state. They can display contextual information through titles, subtitles, and badge values.
Each POS UI extension can only render one tile component for each home screen tile target.
Supported targets
Supported targets
Use cases
- Quick actions: Create action shortcuts like "Apply 10% discount" or "Add popular item."
- Contextual info: Display dynamic subtitles showing cart totals or item counts.
- Notifications: Show badges for pending items, alerts, or status indicators.
- Workflow entry: Provide entry points to launch detailed modal workflows.
Anchor to examplesExamples
Anchor to example-create-a-smart-grid-tileCreate a smart grid tile
Create interactive smart grid shortcuts using a tile component with customizable title, subtitle, and badge. This example shows a basic tile for the POS smart grid.
Create a smart grid tile

Create a smart grid tile
Examples
Create a smart grid tile
Description
Create interactive smart grid shortcuts using a tile component with customizable title, subtitle, and badge. This example shows a basic tile for the POS smart grid.
Default
<s-tile heading="Extension title" subheading="Subtitle" /> <s-tile heading="Extension title" subheading="Subtitle" tone="accent" />
Anchor to propertiesProperties
Configure the following properties on the tile component.
- Anchor to disableddisableddisabledbooleanbooleanDefault: falseDefault: false
Disables the tile meaning it cannot be clicked or receive focus.
- Anchor to headingheadingheadingstringstringDefault: ''Default: ''
A title that describes the content of the tile.
- Anchor to idididstringstring
A unique identifier for the element.
- Anchor to itemCountitemCountitemCountnumbernumber
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.
- Anchor to subheadingsubheadingsubheadingstringstringDefault: ''Default: ''
Supporting text displayed below the heading.
- Anchor to tonetonetone'auto' | 'neutral' | 'accent''auto' | 'neutral' | 'accent'Default: 'auto'Default: 'auto'
Sets the tone of the tile, based on the intention of the information being conveyed.
Anchor to eventsEvents
The tile component provides event callbacks for handling user interactions. Learn more about handling events.
- Anchor to clickclickclick(event: CallbackEvent<"s-tile">) => void(event: CallbackEvent<"s-tile">) => void
Callback when the tile is activated.
CallbackEvent
- bubbles
boolean - cancelable
boolean - composed
boolean - currentTarget
HTMLElementTagNameMap[T] - detail
any - eventPhase
number - target
HTMLElementTagNameMap[T] | null
Anchor to best-practicesBest practices
- Write action-oriented headings: Use specific language like "Apply loyalty discount" rather than generic terms like "Loyalty app."
- Provide contextual subheadings: Show dynamic information like cart totals, eligibility requirements, or current status.
- Use meaningful item counts: Display counts for actionable items like pending notifications or items requiring action, not just informational counts.
- Launch modals for workflows: Use
withrather than performing complex operations directly.
Anchor to limitationsLimitations
The tile component supports click and long press interactions only. Swipe, drag, and other gestures aren't supported.