// Option 1: SDK JavaScript
import { LuneoCustomizer } from '@luneo/customizer';
const customizer = new LuneoCustomizer({
container: '#customizer',
productType: 'tshirt',
tools: ['text', 'image', 'shapes', 'cliparts'],
export: {
format: 'pdf',
dpi: 300,
colorSpace: 'cmyk',
bleed: 3 // mm
},
onSave: async (design) => {
// Envoi automatique vers votre backend
await saveDesign(design);
}
});
// Option 2: Iframe simple
<iframe
src="https://luneo.app/embed/customizer?product=tshirt"
width="100%"
height="800"
/>