Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface SimpleGridKind : ComponentKind
Link copied to clipboard
sealed interface SurfaceKind : ComponentKind
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
@Composable
fun HorizontalDivider(modifier: Modifier = Modifier, variant: CssStyleVariant<HorizontalDividerKind>? = null)

A dividing line (i.e. an <hr> tag) which is SilkTheme-aware meant to visually break up elements in a column.

Link copied to clipboard
fun numColumns(base: Int, sm: Int = base, md: Int = sm, lg: Int = md, xl: Int = lg): ResponsiveValues<Int>

A convenience function for generating a ResponsiveValues instance to be consumed by SimpleGrid.

Link copied to clipboard
@Composable
fun SimpleGrid(numColumns: ResponsiveValues<Int>, modifier: Modifier = Modifier, variant: CssStyleVariant<SimpleGridKind>? = null, ref: ElementRefScope<HTMLElement>? = null, content: @Composable () -> Unit)

A widget making it easy to create a common case of responsive grids, specifically one where you simply specify the number of columns and then its contents will flow to a new row automatically.

Link copied to clipboard
@Composable
fun Surface(modifier: Modifier = Modifier, variant: CssStyleVariant<SurfaceKind>? = null, colorModeOverride: ColorMode? = null, contentAlignment: Alignment = Alignment.TopStart, ref: ElementRefScope<HTMLElement>? = null, content: @Composable BoxScope.() -> Unit)

A panel which encapsulates a SilkTheme-aware area.

Link copied to clipboard
@Composable
fun VerticalDivider(modifier: Modifier = Modifier, variant: CssStyleVariant<VerticalDividerKind>? = null)

A dividing line (i.e. an <hr> tag) which is SilkTheme-aware meant to visually break up elements in a row.