0.1.3 #4

Merged
Thilawyn merged 90 commits from next into master 2025-08-23 03:07:28 +02:00
Showing only changes of commit 8e4bcfe59d - Show all commits

View File

@@ -1,16 +1,20 @@
import { TextField } from "@radix-ui/themes"
import { Effect } from "effect"
import { Component } from "effect-fc"
import { Hooks } from "effect-fc/hooks"
import { useInput } from "effect-fc/hooks"
import { JSX } from "react"
export namespace TextInput {
export interface Props<A, R> extends Hooks.useInput.Options<A, R>, TextField.RootProps {}
export interface Props<A, R> extends useInput.Options<A, R>, TextField.RootProps {}
}
export class TextInput extends Component.make(Effect.fnUntraced(function* TextInput <A, R>(props: TextInput.Props<A, R>) {
export class TextInput extends Component.make(
Effect.fnUntraced(function* TextInput <A, R>(props: TextInput.Props<A, R>) {
const input = yield* useInput(props)
return <></>
})).pipe(
})
).pipe(
Component.withFunctionComponentSignature<<A, R>(props: TextInput.Props<A, R>) => JSX.Element>()
) {}
TextInput["~Error"]