Function: useBlock()
useBlock<
T>(node?):object
Defined in: packages/core/src/react/blocks/hooks/useBlock.ts:13
Returns the block name and attributes
Type Parameters
T
T extends IBlockAttributes
Parameters
node?
DomNode
Returns
object
attributes
attributes:
T
className
className:
string
name
name:
string