Skip to content

1.0.0-beta07

Compare
Choose a tag to compare
@vinaygaba vinaygaba released this 27 Oct 19:44
· 111 commits to master since this release
  • Added the ability to specify if a Composable is a style of another Composable function. Created two new properties in the @ShowkaseComposable annotation - styleName & defaultStyle. Here's how you'd use it.
@ShowkaseComposable(group = "Chips", name = "BasicChip", defaultStyle = true)
@Composable
fun ChipPreview() {
    Chip(isError = false)
}

@ShowkaseComposable(group = "Chips", name = "BasicChip", styleName = "Error")
@Composable
fun ChipErrorPreview() {
    Chip(isError = true)
}
  • Improvements to screenshot testing code generation. This feature is still work in progress so I've intentionally not added documentation for this just yet but it should be coming soon!