Skip to content

3D shirt and sponsorships

<wodira-shirt-auction> lets visitors rotate a 3D shirt, see all four views and select sponsorship placements with current prices and brands. Sign-in, logo upload and payment continue in a WODira window.

<wodira-shirt-auction>Interactive sample

Drag to rotate the shirt, switch between views and select a placement. This fictional campaign has bidding closed; it does not create bids or payments.

This example serves its data and model from the documentation site. Explore the shirt and placements without an account. The fictional campaign has bidding closed, making this preview read-only.

Available since @wodira/[email protected].

import { defineWodiraShirtElements } from '@wodira/browser/ui/shirt-sponsors';
defineWodiraShirtElements();
<wodira-shirt-auction
campaign-id="campaign_..."
publishable-key="wpk_live_..."
locale="en"
></wodira-shirt-auction>

The campaign must belong to the publishable key’s organization, be published and allow your website origin. The preview IDs and key are fictional: replace them with your integration’s values.

Attribute Purpose
campaign-id Sponsorship campaign identifier.
publishable-key Publishable key with your website among its allowed origins.
base-url API; defaults to https://api.wodira.app.
app-url WODira website for the model, sign-in and payment; defaults to https://wodira.app.
locale es, en, pt or auto.

Listen for wodira:shirt:slot-selected to track placement selection and wodira:shirt:bid-started when the bidding window opens. wodira:shirt:paid is a UI signal; confirm payments on your server, not from a browser event.

The shirt shares the customization tokens, including --wodira-color-accent. On devices without WebGL, placements remain available in the accessible list.