AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

heading.tsx 696B

1234567891011121314151617181920212223242526
  1. export default function Heading({
  2. title,
  3. description,
  4. variant = 'default',
  5. }: {
  6. title: string;
  7. description?: string;
  8. variant?: 'default' | 'small';
  9. }) {
  10. return (
  11. <header className={variant === 'small' ? '' : 'mb-8 space-y-0.5'}>
  12. <h2
  13. className={
  14. variant === 'small'
  15. ? 'mb-0.5 text-base font-medium'
  16. : 'text-xl font-semibold tracking-tight'
  17. }
  18. >
  19. {title}
  20. </h2>
  21. {description && (
  22. <p className="text-sm text-muted-foreground">{description}</p>
  23. )}
  24. </header>
  25. );
  26. }