feat: implement getTags API and integrate with content creation form

This commit is contained in:
Ardeman
2025-03-05 17:57:52 +08:00
parent aca894729e
commit 1a1d8cc209
8 changed files with 203 additions and 40 deletions
+5 -1
View File
@@ -35,6 +35,7 @@ export const Input = <TFormValues extends Record<string, unknown>>(
type = 'text',
placeholder,
disabled,
className,
...rest
} = properties
const [inputType, setInputType] = useState(type)
@@ -57,7 +58,10 @@ export const Input = <TFormValues extends Record<string, unknown>>(
</Label>
<HeadlessInput
type={inputType}
className="h-[42px] w-full rounded-md border border-[#DFDFDF] p-2"
className={twMerge(
'h-[42px] w-full rounded-md border border-[#DFDFDF] p-2',
className,
)}
placeholder={inputType === 'password' ? '******' : placeholder}
{...register(name, rules)}
{...rest}