import type { HTMLAttributes } from 'react'
import React, { forwardRef } from 'react'
import { IconButton, Icon } from '../..'
export interface CardProps
extends Omit, 'role'> {
/**
* Specifies the text to be loaded into the header.
*/
title: string
/**
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
*/
testId?: string
/**
* Specifies the card max width.
*/
maxWidth?: string
/**
* Specifies what icon to use following the FastStore Icon sheet.
*/
iconName?: string
/**
* Function that should be executed when the icon is clicked
*/
iconAction?: () => void
}
const Card = forwardRef(function Card(
{
title,
maxWidth,
testId = 'fs-card',
iconName,
iconAction,
children,
...otherProps
},
ref
) {
return (