SimpleTextAtom

class SimpleTextAtom(    val textColor: AtomikColor,     val typography: AtomikTypographyType,     val fontFamily: AtomikFontFamily?) : Atom, TextAtom

Convenience class to only get the Text Atom

Constructors

Link copied to clipboard
fun SimpleTextAtom(    textColor: AtomikColor,     typography: AtomikTypographyType,     fontFamily: AtomikFontFamily?)

Functions

Link copied to clipboard
fun <T : AtomInterface> asAtom(): T?

Checks to see if this Atom implements a certain AtomInterface and if it does returns the interface

Link copied to clipboard
inline fun <T : AtomInterface> subAtom(): T?

Finds a subComponent matching a specified AtomInterface if it exists

Properties

Link copied to clipboard
open override val fontFamily: AtomikFontFamily?

the fontFamily associated with the text

Link copied to clipboard
val hasSubComponents: Boolean

Checks to see if the Atom has any subcomponents. Returns boolean

Link copied to clipboard
open val subComponents: List<Atom>

the components related to this atom, as mentioned in description

Link copied to clipboard
open override val textColor: AtomikColor

the color of the text

Link copied to clipboard
open override val type: AtomType

the Type of atom being displayed, such as button or text

Link copied to clipboard
open override val typography: AtomikTypographyType

the typography associated with the text