PPolaris ComponentsConnect an agent

Support Card

A support callout with chat and documentation actions plus a side illustration, built with Polaris CalloutCard.

Preview

Code

Example.jsx
import { useState } from 'react';
import { Banner, BlockStack, CalloutCard, Text } from '@shopify/polaris';

const ILLUSTRATION = '/illustrations/helpdesk.svg';
const DOCS_URL = 'https://docs.avada.io';

export const Example = () => {
  const [chatRequested, setChatRequested] = useState(false);

  return (
    <BlockStack gap="400">
      <CalloutCard
        title="Helpdesk"
        illustration={ILLUSTRATION}
        primaryAction={{ content: 'Chat with us', onAction: () => setChatRequested(true) }}
        secondaryAction={{ content: 'Read guide', url: DOCS_URL, external: true }}
      >
        <Text as="p">
          Our support team is ready to assist you 24/7 through our in-app live chat feature, ensuring
          help is always available when you need it.
        </Text>
      </CalloutCard>
      {chatRequested && (
        <Banner
          tone="success"
          title="We got your message"
          onDismiss={() => setChatRequested(false)}
        >
          <Text as="p">A support agent will reply in the chat widget shortly.</Text>
        </Banner>
      )}
    </BlockStack>
  );
};