Migrate site controls to Nebula design system
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
This commit is contained in:
parent
e3d0925eb1
commit
817e21567b
127 changed files with 5380 additions and 2363 deletions
|
|
@ -1,9 +1,9 @@
|
|||
// Rôle : encapsule l'input fichier JSON derrière un bouton d'import réutilisable.
|
||||
import { Icon } from "./Icon.jsx";
|
||||
|
||||
export function ImportButton({ className, label, title, ariaLabel, icon, onFile }) {
|
||||
export function ImportButton({ className, label, title, ariaLabel, icon, onFile, ...props }) {
|
||||
return (
|
||||
<label className={className} aria-label={ariaLabel} title={title}>
|
||||
<label className={className} aria-label={ariaLabel} title={title} {...props}>
|
||||
{icon && <Icon name={icon} />}
|
||||
{label}
|
||||
<input type="file" accept="application/json" hidden onChange={async (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue