Manuscript

Composable to enable usage of variants / controls / actions

Parameters

darkTheme

whether this component should be displayed using a dark background by default

Overrides the defaultDarkTheme parameter for ManuscriptLibrary

Defaults to isSystemInDarkTheme if this value is not specified at either the library level or the component level

Samples

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalInspectionMode
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import io.ezard.manuscript.bottomsheet.BottomSheet
import io.ezard.manuscript.controls.*
import io.ezard.manuscript.library.LocalManuscriptLibraryData
import io.ezard.manuscript.theme.*
import io.ezard.manuscript.utils.BackPressHandler
import io.ezard.manuscript.variant.Variant
fun main() { 
   //sampleStart 
   Manuscript {
    Variant("Button") {
        Button(onClick = {}) {
            Text(text = "Click me!")
        }
    }
} 
   //sampleEnd
}