ActivationCards are used in groups to communicate a user’s stage in a series of steps toward an overall action.
Props
Accessibility
Ready
Usage guidelines
When to use
- Use in groups to describe the user's stage in a sequential path toward an overall action.
When not to use
- As a single element communicating updates to the state or status of the surface. Use Callout instead.
Variants
Not Started
import { ActivationCard, Box, Flex } from 'gestalt'; export default function Example() { return ( <Box padding={8} height="100%" display="flex" alignItems="center" justifyContent="center" > <Flex> <ActivationCard dismissButton={{ accessibilityLabel: 'Dismiss card', onDismiss: () => {}, }} link={{ href: 'https://pinterest.com', label: 'Claim your website now', accessibilityLabel: '', }} message="Grow distribution and track Pins linked to your website" status="notStarted" statusMessage="Not started" title="Claim your website" /> </Flex> </Box> ); }
Pending
import { ActivationCard, Box, Flex } from 'gestalt'; export default function Example() { return ( <Box padding={8} height="100%" display="flex" alignItems="center" justifyContent="center" > <Flex> <ActivationCard dismissButton={{ accessibilityLabel: 'Dismiss card', onDismiss: () => {}, }} link={{ href: 'https://pinterest.com', label: 'Learn more', accessibilityLabel: 'Learn more: website claim status', }} message="We will notify you via email as soon as your site has been successfully claimed." status="pending" statusMessage="Pending" title="Claim your website" /> </Flex> </Box> ); }
Needs Attention
import { ActivationCard, Box, Flex } from 'gestalt'; export default function Example() { return ( <Box padding={8} height="100%" display="flex" alignItems="center" justifyContent="center" > <Flex> <ActivationCard dismissButton={{ accessibilityLabel: 'Dismiss card', onDismiss: () => {}, }} link={{ accessibilityLabel: 'Learn more about tag health', href: 'https://pinterest.com', label: 'Learn more', }} message="Oops! Your tag must be healthy to continue." status="needsAttention" statusMessage="Needs attention" title="Tag is unhealthy" /> </Flex> </Box> ); }
Complete
import { ActivationCard, Box, Flex } from 'gestalt'; export default function Example() { return ( <Box padding={8} height="100%" display="flex" alignItems="center" justifyContent="center" > <Flex> <ActivationCard message="Tag is installed and healthy" status="complete" statusMessage="Completed" title="Nice work" /> </Flex> </Box> ); }
Component quality checklist
Quality item | Status | Status description |
---|---|---|
Figma Library | Partially ready | Component is live in Figma, however may not be available for all platforms. |
Responsive Web | Ready | Component responds to changing viewport sizes in web and mobile web. |