StylishDemoCard

fun StylishDemoCard(name: String, code: String, modifier: Modifier = Modifier, preview: @Composable () -> Unit)

A preview-first demo card for the Stylish UI catalog gallery.

Displays the component preview as the primary content with minimal chrome. Clicking the card expands a code panel below.

This design matches the uiverse.io gallery aesthetic: clean, preview-focused, with interactive reveals rather than persistent labels.

Parameters

name

Display name shown above the preview.

code

Kotlin source code snippet for the component.

modifier

Modifier applied to the card.

preview

Composable that renders the interactive preview.