Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

792 B
Raw Blame
'use client'

import { Input as BaseInput } from '@base-ui/react/input'
import { cn } from '../cn'
import { textControlClassName } from '../internal/form-control'
import { resolveClassName } from '../internal/resolve-class-name'

type InputProps = Omit<BaseInput.Props, 'size'>
type InputChangeEventReason = BaseInput.ChangeEventReason
type InputChangeEventDetails = BaseInput.ChangeEventDetails

function Input({ className, ...props }: InputProps) {
  return (
    <BaseInput
      className={(state) =>
        cn(
          textControlClassName,
          'rounded-lg px-3 py-1.75 system-sm-regular',
          resolveClassName(className, state),
        )
      }
      {...props}
    />
  )
}

export { Input }
export type { InputChangeEventDetails, InputChangeEventReason, InputProps }