Image

org.terminal21.client.components.chakra.Image
case class Image(key: String, src: String, alt: String, boxSize: Option[String], borderRadius: Option[String], style: Map[String, Any], dataStore: TypedMap) extends ChakraElement

https://chakra-ui.com/docs/components/image/usage

Note: you can also add images under ~/.terminal21/web/images (where the server runs) and use a relative url to access them, i.e.

Image(src = "/web/images/logo1.png")

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait HasStyle
trait CEJson
class UiElement
trait AnyElement
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

type This = Image

Value members

Concrete methods

def withAlt(v: String): Image
def withBorderRadius(v: Option[String]): Image
def withBoxSize(v: Option[String]): Image
override def withDataStore(ds: TypedMap): This

Attributes

Definition Classes
def withKey(v: String): This
def withSrc(v: String): Image
override def withStyle(v: Map[String, Any]): This

Attributes

Definition Classes
HasStyle

Inherited methods

def findKey(key: String): UiElement

Attributes

Inherited from:
UiElement
def flat: Seq[UiElement]

Attributes

Returns

this element along all it's children flattened

Inherited from:
UiElement
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def store[V](key: TypedMapKey[V], value: V): This

Attributes

Inherited from:
UiElement
def storedValue[V](key: TypedMapKey[V]): V

Attributes

Inherited from:
UiElement

Attributes

Inherited from:
UiElement
def toSimpleString: String

Attributes

Inherited from:
UiElement
def withStyle(vs: (String, Any)*): This

Attributes

Inherited from:
HasStyle