19 lines
580 B
TypeScript
19 lines
580 B
TypeScript
"use client";
|
|
|
|
import { memo } from "react";
|
|
import { InputWithCounterView } from "./InputWithCounter.view";
|
|
import type { InputWithCounterProps } from "./InputWithCounter.types";
|
|
|
|
/**
|
|
* Figma: "Control / InputWithCounter".
|
|
* Single-line text input with a label, optional help glyph, and a live
|
|
* `value.length / maxLength` counter underneath.
|
|
*/
|
|
const InputWithCounterContainer = memo<InputWithCounterProps>((props) => {
|
|
return <InputWithCounterView {...props} />;
|
|
});
|
|
|
|
InputWithCounterContainer.displayName = "InputWithCounter";
|
|
|
|
export default InputWithCounterContainer;
|