shadcn-extras
Getting Started
Introduction
Installation
Components
Avatar Group
Button
Chat
Code
Copy Button
Emoji Picker
New
Field Set
File Drop Zone
Image Cropper
IPv4Address Input
Keyboard Input
Language Switcher
Light Switch
Link
Modal
NLPDateInput
Password
New
Phone Input
PMCommand
Snippet
Star Rating
Tags Input
Terminal
Theme Selector
Table of Contents
Tree View
Window
Actions
Active
Shortcut
Hooks
IsMac
New
UseAutoScroll
UseBoolean
UseClipboard
UseFrecency
New
UsePromise
UseToc
Toggle Sidebar
Search
Ctrl + K
ModelContextProtocol
MCP logo
MCP
Toggle theme
IsMac
A hook to determine if the user is on a Mac.
Component Source
Preview
Code
(sorry Linux users)
Installation
jsrepo
pnpm
npm
bun
yarn
Copy
jsrepo add hooks/is-mac.svelte
Usage
Copy
Acknowledgements
This hook is based on the shadcn-svelte
useIsMac
hook.
Shortcut
UseAutoScroll
On This Page