@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
22 lines (18 loc) • 734 B
JavaScript
"use client";
import { createComponent } from "../../core/components/create-component.js";
import { inputAddonStyle } from "./input-addon.style.js";
import { useInputBorder } from "./use-input-border.js";
//#region src/components/input/input-addon.tsx
const { PropsContext: InputAddonPropsContext, usePropsContext: useInputAddonPropsContext, withContext } = createComponent("input-addon", inputAddonStyle);
const InputAddon = withContext("div")(void 0, ({ errorBorderColor, focusBorderColor,...rest }) => {
return {
...useInputBorder({
errorBorderColor,
focusBorderColor
}),
...rest
};
});
//#endregion
export { InputAddon, InputAddonPropsContext, useInputAddonPropsContext };
//# sourceMappingURL=input-addon.js.map