SPB Git

spb/phi-conseil

Public
580 B · 23 lines tsx
1import type { ReactNode } from "react";23/** Titre centré entre deux fins filets dorés (section « Nos services »). */4export function SectionTitle({5  children,6  as: Tag = "h2",7  id,8}: {9  children: ReactNode;10  as?: "h1" | "h2";11  id?: string;12}) {13  return (14    <div className="flex items-center gap-5 md:gap-8">15      <span aria-hidden="true" className="bg-gold-500/70 h-px flex-1" />16      <Tag id={id} className="text-h2 shrink-0 text-center">17        {children}18      </Tag>19      <span aria-hidden="true" className="bg-gold-500/70 h-px flex-1" />20    </div>21  );22}23
Files · main
Menu

Theme