Skip to content
Back

Product detailPro

Work screens / Product detail: a product page. A gallery that follows the colour, the price and rating, colour swatches, sizes with stock (sold-out sizes refuse and say so), a quantity stepper capped by stock, Add to cart with the line total, and the cart with its subtotal and Check out.

oxyn add product-detail
  1. Fellside Goods
  2. Products
  3. Fellside Wool Coat
10 products
Outerwear

Fellside Wool Coat

$289.004.7212 reviews

A long coat in brushed wool with a quilted lining.

Colour Charcoal
Size
1

Free delivery over $150 · returns within 30 days · ships by 2026-11-14

The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Choose a colour, size and quantity of one product and add it to the cart.

When not to use

  • Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
  • The app frame: use App shell instead.
  • An assistant docked beside a page: use AI side panel instead.

Installation

Product detail is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add product-detail

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Sample

Sample data, the page as an inset card beside the sidebar.

  1. Fellside Goods
  2. Products
  3. Fellside Wool Coat
10 products
Outerwear

Fellside Wool Coat

$289.004.7212 reviews

A long coat in brushed wool with a quilted lining.

Colour Charcoal
Size
1

Free delivery over $150 · returns within 30 days · ships by 2026-11-14

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Flat

The same view with the page edge to edge.

  1. Fellside Goods
  2. Products
  3. Fellside Wool Coat
10 products
Outerwear

Fellside Wool Coat

$289.004.7212 reviews

A long coat in brushed wool with a quilted lining.

Colour Charcoal
Size
1

Free delivery over $150 · returns within 30 days · ships by 2026-11-14

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Loading

Skeletons where the data lands.

  1. Fellside Goods
  2. Products
  3. Fellside Wool Coat
10 products
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Empty

A first run: what will show here and how to start.

  1. Fellside Goods
  2. Products
0 products

No products yet

Add your first product or import a catalogue from a spreadsheet.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Nosize

Add to cart pressed before a size was picked.

  1. Fellside Goods
  2. Products
  3. Fellside Wool Coat
10 products
Outerwear

Fellside Wool Coat

$289.004.7212 reviews

A long coat in brushed wool with a quilted lining.

Colour Charcoal
Size
1

Free delivery over $150 · returns within 30 days · ships by 2026-11-14

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Soldout

A sold-out size pressed: it refuses and says why.

  1. Fellside Goods
  2. Products
  3. Ridgeway Puffer
10 products
Outerwear

Ridgeway Puffer

$224.004.461 reviews

Recycled fill, a two-way zip and a stowable hood.

Colour Charcoal
Size
1

Free delivery over $150 · returns within 30 days · ships by 2026-11-14

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Added

A size and colour added; the cart shows the line.

  1. Fellside Goods
  2. Products
  3. Fellside Wool Coat
10 products
Outerwear

Fellside Wool Coat

$289.004.7212 reviews

A long coat in brushed wool with a quilted lining.

Colour Navy
Size · In stock
1
Cart · 1 items$289.00
  • 1 × Fellside Wool CoatNavy · S

Free delivery over $150 · returns within 30 days · ships by 2026-11-14

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

ProductDetailScreen

PropTypeDefaultDescription
layoutString"inset"`inset` or `flat`.
stateString"sample"A state key.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabBack, colours, sizes, quantity, then Add to cart

Accessibility

  • Colours and sizes are radio groups; sold-out sizes are aria-disabled and named sold out.
  • Refusals (Pick a size, sold out) are alerts tied to the size group.

Responsive behaviour

  • Authored on the 1440 × 900 canvas: a 248 px sidebar, the page as an inset card and, where the screen has one, a 328 px right card in the gutter.
  • Under 960 px the sidebar becomes a drawer from the header's menu button and the right card hides.
  • Under 640 px header actions turn into icon buttons, grids drop to one column and labels ellipsise.
Edge cases (spec)

Authored on the 1440 × 900 stage and scaled to its column; /full renders at the real viewport. Under 960 px the sidebar is a drawer from the header's menu button (Escape or the scrim closes it) and the right card hides. Under 640 px header actions become icon buttons and the meta line hides. scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark. Under 640 px the gallery sits above the buy column.

Notes for AI

  • Import ProductDetailScreen from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: ProductDetailEl in oxyn_gpui.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI