dev
09/23/2026, 5:54 AM// separate names for each composable current setup it is
PrimaryButton(
onClick = {}
){
Text("Primary Button")
}
SecondaryButton(
onClick = {}
){
Text("Secondary Button")
}
// a single composable wraps it all and user can select varient from the param
Button(
onClick = {}
varient = ButtonVarient.Outlined
){
Text("Button")
}
also for other components i have different styling for example a tab group
1. Primary prominent one (it has prominent primary color so it should be used mostly in primary actions)
2. Secondary (it has the surface color less prominent than the primary so it's perfect for a tab navigation)
so i wanna give user the choice the styling is mostly same just there is a difference in colors so i can do this
• create two composable named primary tab , secondary tab
• create one tab and give a param varient : TabVarient = TabVarient.Secondary/Surface
so what would be a better api design .