import { component, compound, type Define } from '@sigx/lynx'; export type CardProps = & Define.Prop<'bordered', boolean, false> & Define.Prop<'class', string, false> & Define.Slot<'default'>; const _Card = component(({ props, slots }) => { const getClasses = () => { const c = ['hero-card']; if (props.bordered) c.push('hero-card-bordered'); if (props.class) c.push(props.class); return c.join(' '); }; return () => {slots.default?.()}; }); type CardBodyProps = Define.Prop<'class', string, false> & Define.Slot<'default'>; const CardBody = component(({ props, slots }) => { return () => ( {slots.default?.()} ); }); export const Card = compound(_Card, { Body: CardBody, });