Skip to Content
This is our docs site, visit our main website at strut.fit 
API ReferenceFit Tip Options

Fit Tip Options

Fit tip options are configured by adding the fit tip script and passing attributes to the strutfit-fit-tip component.

<script src="https://store-assistant-fittip.strut.fit" async></script>
<strutfit-fit-tip product-code="{{ProductIdentifier}}"></strutfit-fit-tip>

Required Parameters

  • product-code: Unique product identifier used for products in StrutFit.
    • Type: string

Optional Parameters

  • variant: Sets the fit tip variant style.

    • Type: string
    • Allowed values: text, outlined
    • Default value: text
  • show-icon: Controls icon visibility.

    • Type: boolean
  • full-width: Makes the fit tip fill the width of its container when set to true.

    • Type: boolean
  • font-family: Sets fit tip font family.

    • Type: string
    • Default behavior: Attempts to inherit your website’s primary font then falls back to -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif
  • font-size: Sets fit tip font size.

    • Type: string
  • font-weight: Sets fit tip font weight.

    • Type: string
  • background-color: Sets fit tip background color.

    • Type: string
  • border-radius: Sets fit tip border radius.

    • Type: string
  • border: Sets the full CSS border value.

    • Type: string
  • border-color: Sets the border color.

    • Type: string
  • color: Sets text color.

    • Type: string
  • icon-color: Sets icon color.

    • Type: string
  • margin: Sets shorthand margin.

    • Type: string
  • margin-top: Sets top margin.

    • Type: string
  • margin-left: Sets left margin.

    • Type: string
  • margin-bottom: Sets bottom margin.

    • Type: string
  • margin-right: Sets right margin.

    • Type: string
  • text-transform: Sets text transform (e.g. uppercase, lowercase, capitalize).

    • Type: string
  • line-height: Sets the line height.

    • Type: string
    • Default value: 1

Example With All Options

<strutfit-fit-tip product-code="{{ProductIdentifier}}" variant="outlined" show-icon="true" full-width="false" font-family="arial" font-size="12px" font-weight="500" background-color="#f8f9fa" border-radius="8px" border="1px solid #dee2e6" border-color="#dee2e6" color="#333333" icon-color="#333333" margin="8px 0" margin-top="8px" margin-left="0" margin-bottom="8px" margin-right="0" text-transform="uppercase" line-height="1" ></strutfit-fit-tip>
Last updated on