feat(desktop): share sessions
This commit is contained in:
@@ -56,6 +56,10 @@ export function TextField(props: TextFieldProps) {
|
||||
setTimeout(() => setCopied(false), 2000)
|
||||
}
|
||||
|
||||
function handleClick() {
|
||||
if (local.copyable) handleCopy()
|
||||
}
|
||||
|
||||
return (
|
||||
<Kobalte
|
||||
data-component="input"
|
||||
@@ -65,6 +69,7 @@ export function TextField(props: TextFieldProps) {
|
||||
value={local.value}
|
||||
onChange={local.onChange}
|
||||
onKeyDown={local.onKeyDown}
|
||||
onClick={handleClick}
|
||||
required={local.required}
|
||||
disabled={local.disabled}
|
||||
readOnly={local.readOnly}
|
||||
@@ -96,8 +101,3 @@ export function TextField(props: TextFieldProps) {
|
||||
</Kobalte>
|
||||
)
|
||||
}
|
||||
|
||||
/** @deprecated Use TextField instead */
|
||||
export const Input = TextField
|
||||
/** @deprecated Use TextFieldProps instead */
|
||||
export type InputProps = TextFieldProps
|
||||
|
||||
Reference in New Issue
Block a user