feat(notes): wire app with floating add button

This commit is contained in:
devcodetools committed 2026-09-13 15:34:50 +02:00
1 parent 0af0cdc405
commit 9a086cbe7b
5 files changed
+213 -7

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
interface FloatingButtonProps {
onClick: () => void
label?: string
}
function FloatingButton({ onClick, label = 'Créer une note' }: FloatingButtonProps) {
return (
<button
type="button"
onClick={onClick}
aria-label={label}
className="fixed bottom-6 right-6 w-14 h-14 rounded-full bg-amber-400 text-3xl text-gray-800 shadow-lg active:scale-95"
>
+
</button>
)
}
export default FloatingButton