Skip to content

useClipboard ​

Category
Browser

Hook that manages a copy to clipboard

typescript
import { useClipboard } from '@siberiacancode/reactuse';

Usage ​

typescript
const { supported, value, copy } = useClipboard();

Demo ​

Api ​

Parameters

NameTypeDefaultNote
params.enabled?booleanfalseWhether the copy to clipboard is enabled

Contributors ​

Source • Demo