IsMac

A hook to determine if the user is on a Mac.

Installation

Usage

Keys

Often times you'll want to show modifier keys in your UI. You can do this with the exported cmdOrCtrl and optionOrAlt variables.

Acknowledgements

This hook is based on the shadcn-svelte useIsMac hook, as well as some useful enhancements by Thomas G. Lopes