You can replace the default TailwindCSS card with a custom component by passing it to the cardComponent prop of <Onborda />. Your component must accept CardComponentProps.
"use client"
import type { CardComponentProps } from "onborda";
export const CustomCard = ({
step,
currentStep,
totalSteps,
nextStep,
prevStep,
arrow,
}: CardComponentProps) => {
return (
<div>
<h1>{step.icon} {step.title}</h1>
<h2>{currentStep} of {totalSteps}</h2>
<p>{step.content}</p>
<button onClick={prevStep}>Previous</button>
<button onClick={nextStep}>Next</button>
{arrow}
</div>
)
}