Skip to content

Latest commit

 

History

History
82 lines (57 loc) · 3.25 KB

SplitText.md

File metadata and controls

82 lines (57 loc) · 3.25 KB

SplitText

This component allows to the user to insert a split text such OTP codes, PIN or any other texts of this type

Usage

class TestScreen : EquinoxScreen<EquinoxViewModel>() {

    @Composable
    override fun ArrangeScreenContent() {
        Column(
            modifier = Modifier
                .fillMaxSize(),
            horizontalAlignment = Alignment.CenterHorizontally,
            verticalArrangement = Arrangement.Center
        ) {
            // create the dedicated state
            val splitTextState = rememberSplitTextState(
                splits = 6 // the number of the splits which compose the completed text
            )

            // create the related component
            SplitText(
                splitsTextState = splitTextState,
                infoText = InfoText( // if omitted will not be displayed nothing
                    text = "Informative text"
                )
            )

            // assemble and get the completed text
            Text(
                text = splitTextState.getCompleteText()
            )
        }
    }

}

Appearance

Mobile

splittext-android.webm

Desktop & Web

splittext-desktop.mp4

Support

If you need help using the library or encounter any problems or bugs, please contact us via the following links:

Thank you for your help!

Badges

Twitter

Donations

If you want support project and developer

Crypto Address Network
3H3jyCzcRmnxroHthuXh22GXXSmizin2yp Bitcoin
0x1b45bc41efeb3ed655b078f95086f25fc83345c4 Ethereum
AtPjUnxYFHw3a6Si9HinQtyPTqsdbfdKX3dJ1xiDjbrL Solana

If you want support project and developer with PayPal

Copyright © 2025 Tecknobit