MCPcopy Create free account
hub / github.com/chakra-ui/panda / getComponentName

Function getComponentName

packages/extractor/src/utils.ts:67–69  ·  view source on GitHub ↗
(node: JsxOpeningElement | JsxSelfClosingElement)

Source from the content-addressed store, hash-verified

65}
66
67export const getComponentName = (node: JsxOpeningElement | JsxSelfClosingElement) => {
68 return node.getTagNameNode().getText()
69}
70
71const whitespaceRegex = /\s+/g
72export const trimWhitespace = (str: string) => {

Callers 1

extractFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected