Skip to main content

Text

@shopify/shop-minis-platform-sdk / components/Text

Text()

Text(__namedParameters): Element

Parameters

ParameterType
__namedParametersColorProps\<object> & OpacityProps\<object> & VisibleProps\<object> & TypographyProps\<object> & SpacingProps\<object> & object & object & VariantProps\<object, "textVariants"> & Omit\<TextProps & object, "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginHorizontal" | "marginVertical" | "marginStart" | "marginEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingHorizontal" | "paddingVertical" | "paddingStart" | "paddingEnd" | "columnGap" | "rowGap" | "gap" | "opacity" | "visible" | "fontStyle" | "fontVariant" | "fontWeight" | "fontSize" | "fontFamily" | "letterSpacing" | "lineHeight" | "textAlign" | "textDecorationLine" | "textDecorationStyle" | "textShadowColor" | "textShadowOffset" | "textShadowRadius" | "textTransform" | "writingDirection" | "includeFontPadding" | "textAlignVertical" | "verticalAlign" | "variant" | keyof ColorProps\<{ type: ThemeType; barStyle: StatusBarStyle; spacing: { '-xxxl': -64; '-xxl': -48; '-xl': -40; '-l': -32; '-m': -24; '-gutter': -20; '-section': -36; '-s': -16; '-xs-s': -12; '-xs': -8; '-xxs': -4; '-xxxs': -2; none: 0; xxxs: 2; ... 11 more ...; auto: "auto"; }; ... 5 more ...; borderRadii: { ...; }...> & RefAttributes\<unknown>

Returns

Element