> ## Documentation Index
> Fetch the complete documentation index at: https://engage-docs.frigade.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Card

> Communicate information or drive action via in-line content cards

![](https://mintcdn.com/frigade-docs/DN8a-yHFP29XGmqE/images/components/inline-card.svg?fit=max\&auto=format\&n=DN8a-yHFP29XGmqE\&q=85\&s=db9f192a85a7dea2532fb5ac7891ab6b)

## About this component

The `Card` component is a handy little UI element that’s great for showing off promotional materials and important info in a visually appealing way. While they share some similarities with banners, cards have their own unique vibe and offer flexibility in placement.

**When to Use Cards:**

* **Promotional Materials:** Think of cards as your go-to swiss-army knife for inline promotions. For instance, showcasing new features, nudging users with onboarding tips, or encouraging user referrals.

**Advantages of Cards:**

* **Inline Placement:** You’ll usually find cards sitting neatly within in the main UI, like in a sidebar or alongside other product elements. This makes them easy to spot without getting in the way of the user experience.
* **Visual Appeal:** Cards can be designed with eye-catching images, icons, and text, making them interesting and engaging for users.
* **Versatile Use:** Whether you’re promoting a feature or sharing a helpful resource, cards can handle a variety of content types, making them super flexible.

**Best Practices for Cards:**

* **Strategic Placement:** Think about where you put your cards. Positioning them where users can easily see them can boost engagement.
* **Keep It Consistent:** Stick to a consistent design and placement across all your cards. These patterns helps create a cohesive look and feel throughout your app, which increases engagement.
* **Clear Calls to Action:** Make sure each card has a clear call to action, like “Learn More” or “Request Demo.” This encourages users to take that next step.

## Resources

* Launch cards with no-code using custom [Collections](https://engage-docs.frigade.com/platform/collections.md#inline-ui-components)
* Target your card to specific users with [Targeting](https://engage-docs.frigade.com/platform/targeting.md)
* See [industry examples](https://www.productonboarding.com/?type=card) of cards

## Demo

* See cards in action in our [live demo](https://demo.frigade.com/cards)

## Installation

> [tab] Code
>
> ```tsx theme={"system"}
> import * as Frigade from '@frigade/react';
>
> const App = () => {
>   return (
>     <Frigade.Card flowId="my-flow-id" />
>   );
> };
> ```

> [tab] No-code
>
> Cards can be be deployed with no-code using [Collections](https://engage-docs.frigade.com/platform/collections.md).

## Customization

To learn about how to customize Frigade components, see the [customization documentation](https://engage-docs.frigade.com/sdk/styling/) and [examples](https://demo.frigade.com) of custom themes in action.

## SDK Properties

> [tab] React Props
>
> **as** `ElementType\<any, keyof IntrinsicElements\>`
>
> Optional component to wrap the child components in, e.g. `as={Dialog}` will render the Flow in a modal Dialog. Defaults to `Box`.
>
> **autoStart** `boolean`
>
> Whether to automatically mark the Flow started (i.e. in progress) when the Flow is eligible to be shown.
> You will need to call `flow.start()` or `step.start()` from the parent component if you set this to `false`. Most components should not need to override this behavior.
>
> Defaults to `true`.
>
> **children** `any`
>
> **css** `Interpolation\<Theme\>`
>
> Emotion CSS prop to apply to the component. See [Theming documentation](https://docs.frigade.com/v2/sdk/styling/css-overrides) for more information.
>
> Example usage:
>
> ```
> <Frigade.Checklist css={{ backgroundColor: "pink", ".fr-button-primary": { backgroundColor: "fuchsia" } }} />
> ```
>
> **dismissible** `boolean`
>
> Whether the Flow is dismissible or not
>
> **flowId** `string`
>
> The Flow ID to render. You can find the Flow ID in the Frigade dashboard.
>
> **forceMount** `boolean`
>
> If true, the Flow will be mounted even if it has already been completed or dismissed.
> However, if the user does not match the Flow's targeting, the Flow will not be mounted.
>
> **modal** `boolean`
>
> Register the Flow as a modal to prevent popup collisions (only one modal Flow will render at a time).
>
> **onComplete** `FlowHandlerProp`
>
> Handler for when the Flow is completed. This is event is fired immediately after the user completes the Flow.
>
> **onDismiss** `FlowHandlerProp`
>
> Handler for when the Flow is dismissed (skipped). This is event is fired immediately after the user dismisses the Flow.
>
> **onPrimary** `StepHandlerProp`
>
> Handler for when primary button is clicked.
> If this function returns false or a promise that resolves to `false`, the step will not be automatically completed when clicked.
>
> **onSecondary** `StepHandlerProp`
>
> Handler for when secondary button is clicked.
> If this function returns false or a promise that resolves to `false`, the step will not be automatically completed when clicked.
>
> **variables** `Record\<string, unknown\>`
>
> Variables to pass to the Flow. You can use variables in the Flow configuration to customize copy.
> For instance, you can use `title: Hello, ${name}!` in the Flow configuration and pass `variables={{name: 'John'}}` to customize the copy.

> [tab] Flow Configuration (Advanced Editor)
>
> **steps** `array`
>
> The steps to show in the tooltip tour.
>
> **steps\[].id** `string`
>
> Unique identifier for the step. Do not change this once the step has been created.
>
> **steps\[].title** `string`
>
> The title of the step
>
> **steps\[].subtitle** `string`
>
> The description of the step
>
> **steps\[].imageUri** `string`
>
> Url to an image to display in the step
>
> **steps\[].iconUri** `string`
>
> Url to an icon to display in the step. This is only supported by the carousel checklist component.
>
> **steps\[].videoUri** `string`
>
> Url to a video to display in the step such as YouTube, Vimeo, or a direct link to an mp4 file
>
> **steps\[].primaryButton** `object`
>
> Config for the primary button in this step.
>
> **steps\[].primaryButton.action** `boolean,string`
>
> Primary button action. (defaults to step.complete).\
> **Possible values:** `false`, `flow.back`, `flow.complete`, `flow.forward`, `flow.restart`, `flow.skip`, `flow.start`, `step.complete`, `step.skip`, `step.reset`, `step.start`
>
> **steps\[].primaryButton.target** `string`
>
> Primary button URI target (defaults to \_self).
>
> **steps\[].primaryButton.title** `string`
>
> Primary button title. If omitted, the primary button will not be shown.
>
> **steps\[].primaryButton.uri** `string`
>
> Primary button URI.
>
> **steps\[].primaryButtonTitle** `string`
>
> **Deprecated**: use `primaryButton.title` instead. The title of the primary button
>
> **steps\[].primaryButtonUri** `string`
>
> **Deprecated**: use `primaryButton.uri` instead. The url to open when the primary button is clicked
>
> **steps\[].primaryButtonUriTarget** `string`
>
> **Deprecated**: use `primaryButton.target` instead. The target of the primary button url (default: \_blank; use \_self to open in the same window). Setting it to # will open the existing page and dismiss any Frigade modals.
>
> **steps\[].secondaryButton** `object`
>
> Config for the secondary button in this step.
>
> **steps\[].secondaryButton.action** `boolean,string`
>
> Secondary button action. (defaults to step.complete).\
> **Possible values:** `false`, `flow.back`, `flow.complete`, `flow.forward`, `flow.restart`, `flow.skip`, `flow.start`, `step.complete`, `step.skip`, `step.reset`, `step.start`
>
> **steps\[].secondaryButton.target** `string`
>
> Secondary button URI target (defaults to \_self).
>
> **steps\[].secondaryButton.title** `string`
>
> Secondary button title. If omitted, the secondary button will not be shown.
>
> **steps\[].secondaryButton.uri** `string`
>
> Secondary button URI.
>
> **steps\[].secondaryButtonTitle** `string`
>
> **Deprecated**: use `secondaryButton.title` instead. The title of the secondary button
>
> **steps\[].secondaryButtonUri** `string`
>
> **Deprecated**: use `secondaryButton.uri` instead. The url to open when the secondary button is clicked
>
> **steps\[].secondaryButtonUriTarget** `string`
>
> **Deprecated**: use `secondaryButton.target` instead. The target of the secondary button url (default: \_blank; use \_self to open in the same window). Setting it to # will open the existing page and dismiss any Frigade modals.
>
> **steps\[].completionCriteria** `string`
>
> Targeting that automatically completes the step. E.g.: user.property('connectedBank') == true
>
> **steps\[].startCriteria** `string`
>
> Targeting that automatically blocks the step from starting until it becomes true. E.g.: user.property('connectedBank') == true
>
> **steps\[].visibilityCriteria** `string`
>
> Targeting that automatically shows the step when it becomes true. E.g.: user.property('connectedBank') == true
>
> **steps\[].props** `object`
>
> Override the default UI props for the corresponding component


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.