Skip to content

Instantly share code, notes, and snippets.

@lelandrichardson
Created August 27, 2020 20:37
Show Gist options
  • Save lelandrichardson/ee839fa554bdab2592ef795362c39402 to your computer and use it in GitHub Desktop.
Save lelandrichardson/ee839fa554bdab2592ef795362c39402 to your computer and use it in GitHub Desktop.
@Composable
fun FancyBox(children: @Composable () -> Unit) {
Box(fancy) { children() }
}
@Composable fun Story(…) { /* ... */ }
@Composable fun EditForm(...) { /* ... */ }
@Composable fun FancyStory(...) {
FancyBox { Story(…) }
}
@Composable fun FancyEditForm(...) {
FancyBox { EditForm(...) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment