Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

624 B
Raw Blame
import { ReactNode } from 'react'

interface MFabProps {
  onClick?: () => void
  ariaLabel: string
  className?: string
  children: ReactNode
}

/** 56px round action button on the --m-act surface (bottom-nav "+", screen FABs). */
export default function MFab({ onClick, ariaLabel, className = '', children }: MFabProps) {
  return (
    <button
      type="button"
      onClick={onClick}
      aria-label={ariaLabel}
      className={`flex h-14 w-14 flex-none items-center justify-center rounded-full bg-m-act text-m-actfg shadow-[0_8px_20px_-6px_rgba(0,0,0,.4)] ${className}`}
    >
      {children}
    </button>
  )
}