Skip to content

<SizeGuide>

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)
productstringRequired
variant"link" | "button"Optional

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

labelstringOptional

Your own words instead of "Size guide".

styleStyleProp<ViewStyle>Optional
onRecommendation(r: Recommendation) => voidOptional

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)}
/>

Was this page helpful?