new tool timer & alert revamp
All checks were successful
Deploy Sokko G / deploy (push) Successful in 6s

This commit is contained in:
Shinuwa 2026-07-26 11:41:42 +02:00
parent 0c7ae46b4d
commit 68005ef918
38 changed files with 2048 additions and 111 deletions

View file

@ -0,0 +1,25 @@
// Rôle : fournit un contrôle d'onglets réutilisable avec rôles ARIA.
export function Tabs({ tabs, activeTab, onChange, className = "", iconOnly = false }) {
return (
<div className={`tabs ${className}`.trim()} role="tablist">
{tabs.map((tab) => {
const active = tab.id === activeTab;
return (
<button
key={tab.id}
className={active ? "active" : ""}
type="button"
role="tab"
aria-selected={active}
aria-label={tab.label}
title={tab.label}
onClick={() => onChange(tab.id)}
>
{tab.icon && <span className={`module-icon-svg module-icon-${tab.icon}`} aria-hidden="true" />}
{!iconOnly && <span>{tab.label}</span>}
</button>
);
})}
</div>
);
}