MCPcopy Create free account
hub / github.com/formkit/formkit / updateCountValue

Function updateCountValue

packages/addons/src/plugins/inputCount.ts:85–89  ·  view source on GitHub ↗
({ payload }: { payload: string })

Source from the content-addressed store, hash-verified

83 })
84
85 function updateCountValue({ payload }: { payload: string }) {
86 node.props.inputCountString = `${payload ? payload.length : 0}${
87 maxLength ? `/${maxLength}` : ''
88 }`
89 }
90
91 function getMaxLength() {
92 const rules = node.props.parsedRules

Callers 1

createInputCountPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected