RegularPreviewSetting

fun RegularPreviewSetting(title: String, body: String, onClick: () -> Unit)

A setting that's still in the preview stage.

This adds a PreviewChip next to the setting's name.

Parameters

title

the setting's name.

body

the setting's description.

onClick

the action to perform when the setting is tapped.

Samples

import androidx.compose.runtime.Composable
import com.porg.gugal.R
import com.porg.m3.settings.RegularPreviewSetting
import com.porg.m3.settings.RegularSetting

fun main() { 
   //sampleStart 
   RegularPreviewSetting(
    "Robin",
    "Your search companion powered by AI"
) {
    // show the settings for this feature
} 
   //sampleEnd
}