Skip to content

Theemo / @theemo/figma / getNameFromText

Function: getNameFromText()

ts
function getNameFromText(node): string

Default implementation for getNameFromText()

Returns the name of the node in lowercase

Parameters

ParameterTypeDescription
nodeNode<"TEXT">Figma Text Node

Returns

string

Normalized name

See

Documentation

Source

packages/@theemo/figma/src/defaults.ts:89