Link
A Link is a text button with a optional trailing icon.
Parameters
the callback to be invoked when this link is clicked.
the Modifier to be applied to this link.
whether this link is enabled.
the size of this link.
the padding of this link.
the shape of this link.
the ButtonColors used by this link to resolve background color and content color.
a trailing icon after the content, typically an Icon, default tint is ButtonColors.contentColor
the MutableInteractionSource representing the stream of Interactions for this link
the content of this link. typically a Text
Samples
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.pico.spatial.ui.design.Link
import com.pico.spatial.ui.design.Text
fun main() {
//sampleStart
Link(onClick = {}) { Text("Link style button") }
//sampleEnd
}A Link is a text button with a optional trailing icon.
Parameters
the callback to be invoked when this link is clicked.
the Modifier to be applied to this link.
whether this link is enabled.
the size of this link.
the padding of this link.
the shape of this link.
the ButtonColors used by this link to resolve background color and content color.
the ButtonVibrants used by this link to resolve background vibrancy and content vibrancy.
a trailing icon after the content, typically an Icon, default tint is ButtonColors.contentColor
the MutableInteractionSource representing the stream of Interactions for this link
the content of this link. typically a Text
Samples
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.pico.spatial.ui.design.Link
import com.pico.spatial.ui.design.Text
fun main() {
//sampleStart
Link(onClick = {}) { Text("Link style button") }
//sampleEnd
}