SPB Git

Repository Public

icons.tsx 2.7 KB 26 lines tsx

1/** Pictogrammes du site public (traits 24 × 24, hérités de `currentColor`). */2type P = { size?: number; className?: string };3const S = ({ size = 22, className, children, fill = false }: P & { children: React.ReactNode; fill?: boolean }) => (4  <svg width={size} height={size} viewBox="0 0 24 24" fill={fill ? "currentColor" : "none"} stroke={fill ? "none" : "currentColor"} strokeWidth="1.9" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" className={className}>{children}</svg>5);6export const IconHome = (p: P) => <S {...p}><path d="M4 10.5 12 4l8 6.5V19a1 1 0 0 1-1 1h-4.5v-5.5h-5V20H5a1 1 0 0 1-1-1v-8.5Z" /></S>;7export const IconFeed = (p: P) => <S {...p}><rect x="6.5" y="3" width="11" height="18" rx="3" /><path d="M10.6 9.4v5.2l4.2-2.6-4.2-2.6Z" fill="currentColor" stroke="none" /></S>;8export const IconSearch = (p: P) => <S {...p}><circle cx="11" cy="11" r="6.5" /><path d="m20 20-4.2-4.2" /></S>;9export const IconInfo = (p: P) => <S {...p}><circle cx="12" cy="12" r="8.5" /><path d="M12 11v5.5M12 7.6v.01" /></S>;10export const IconPlay = (p: P) => <S {...p} fill><path d="M8 5.14v13.72a1 1 0 0 0 1.53.85l10.8-6.86a1 1 0 0 0 0-1.7L9.53 4.3A1 1 0 0 0 8 5.14Z" /></S>;11export const IconPause = (p: P) => <S {...p} fill><path d="M7 5h3.5v14H7zM13.5 5H17v14h-3.5z" /></S>;12export const IconSound = (p: P) => <S {...p}><path d="M11 5 6 9H2.5v6H6l5 4V5ZM15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13" /></S>;13export const IconMuted = (p: P) => <S {...p}><path d="M11 5 6 9H2.5v6H6l5 4V5ZM22 9l-6 6M16 9l6 6" /></S>;14export const IconShare = (p: P) => <S {...p}><path d="M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7M16 6l-4-4-4 4M12 2v14" /></S>;15export const IconLink = (p: P) => <S {...p}><path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5" /></S>;16export const IconDoc = (p: P) => <S {...p}><path d="M7 3.5h7l4 4V19a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 6 19V5a1.5 1.5 0 0 1 1-1.5ZM13.5 3.5V8H18M9 12.5h6M9 16h4" /></S>;17export const IconUp = (p: P) => <S {...p}><path d="m6 14.5 6-6 6 6" /></S>;18export const IconDown = (p: P) => <S {...p}><path d="m6 9.5 6 6 6-6" /></S>;19export const IconArrow = (p: P) => <S {...p}><path d="M5 12h14M13 6l6 6-6 6" /></S>;20export const IconDownload = (p: P) => <S {...p}><path d="M12 3v12M7 11l5 5 5-5M4 20h16" /></S>;21export const IconCc = ({ size = 22, className }: P) => (22  <svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.9" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" className={className}>23    <rect x="3" y="5.5" width="18" height="13" rx="3" /><path d="M10.2 10.6a2 2 0 1 0 0 2.8M16.6 10.6a2 2 0 1 0 0 2.8" />24  </svg>25);26
Files main
Menu

Theme