useIsToolSelected
Public function
Signature
function useIsToolSelected(tool: TLUiToolItem): boolean
Parameters
Name | Description |
---|---|
|
|
Returns
boolean
References
Source
packages/tldraw/src/lib/ui/components/Toolbar/DefaultToolbarContent.tsx