Ir al contenido

<SizeGuide>

Esta página aún no está disponible en tu idioma.

Component@tryyoursize/react-native

The native “Size guide” button: “Size guide” → “Calculating your size…” → “Your size: M”.

function SizeGuide({ product, variant = "link", label, style, onRecommendation }: SizeGuideProps)
productstringObligatorio
variant"link" | "button"Opcional

"link" (default): link-sized text with the mark. "button": a small bordered button.

labelstringOpcional

Your own words instead of "Size guide".

styleStyleProp<ViewStyle>Opcional
onRecommendation(r: Recommendation) => voidOpcional

The shopper's recommended size, on show and on every change (sizes only).

<SizeGuide
product="SKU-123"
onRecommendation={(rec) => rec.status === "ready" && !touched && setSize(rec.size)}
/>

¿Te ha resultado útil esta página?