SearchPanel 작업 진행 중 - chw

This commit is contained in:
hyunwoo93.cha
2024-01-25 23:17:16 +09:00
parent cdd6a774b6
commit 8110067e29
9 changed files with 195 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
import classNames from "classnames";
import React from "react";
import css from "./TInput.module.less";
import { InputField } from "@enact/sandstone/Input";
import { $L } from "../../utils/helperMethods";
const KINDS = { withIcon: "withIcon" };
const ICONS = { search: "search" };
const BORDER = { none: "none" };
const COLOR = { transparent: "transparent" };
export default function TInput({
kind = "",
icon = null,
border = null,
color = null,
className = null,
spotlightDisabled,
...rest
}) {
return (
<InputField
{...rest}
className={classNames(
css.input,
icon && css[icon],
css[kind],
css[border],
css[color],
className
)}
spotlightDisabled={spotlightDisabled}
/>
);
}
export { KINDS, ICONS, BORDER, COLOR };