lndsld

Home > @lndsld/react-hooks > useUserSelect

useUserSelect() function

Sets user-select CSS property

Signature:

declare function useUserSelect<E extends HTMLElement>(value: UserSelectType | boolean, options?: UseUserSelectOptions<E>): void;

Parameters

Parameter Type Description
value UserSelectType | boolean value for user-select CSS property (boolean shorthand also available)
options UseUserSelectOptions<E> (Optional) configuration options for hook

Returns:

void