Skip to content

Instantly share code, notes, and snippets.

@lelandrichardson
Created August 27, 2020 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lelandrichardson/c9ea241eb9618e479912628ac0d28b53 to your computer and use it in GitHub Desktop.
Save lelandrichardson/c9ea241eb9618e479912628ac0d28b53 to your computer and use it in GitHub Desktop.
@Composable
fun DateInput(value: DateTime, onChange: (DateTime) -> Unit) {
ValidatedInput(
value,
onChange = { ... onChange(...) },
isValid = isValidDate(value)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment