Skip to content

Instantly share code, notes, and snippets.

@ShikaSD
Last active July 31, 2020 22:05
Show Gist options
  • Save ShikaSD/91e8d7d23ef5d60bc09954a53c2f5a62 to your computer and use it in GitHub Desktop.
Save ShikaSD/91e8d7d23ef5d60bc09954a53c2f5a62 to your computer and use it in GitHub Desktop.
@Composable
fun input(
type: String,
value: String,
modifier: Modifier = Modifier
) {
tag(
tagName = 'input',
modifier = modifier.type(type).value(value)
)
}
// usage
input(
type = "text",
value = "",
modifier = Modifier.onChange { }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment