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]) extends ChakraElement[Image]

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 Current[Image]
trait HasStyle[Image]
trait CEJson
trait UiElement
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withAlt(v: String): Image
def withBorderRadius(v: Option[String]): Image
def withBoxSize(v: Option[String]): Image
def withKey(v: String): Image
def withSrc(v: String): Image
override def withStyle(v: Map[String, Any]): Image

Attributes

Definition Classes

Inherited methods

def current(using session: ConnectedSession): A

Attributes

Inherited from:
Current
def flat: Seq[UiElement]

Attributes

Inherited from:
UiElement
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def render()(using session: ConnectedSession): Unit

Attributes

Inherited from:
UiElement
def renderChanges()(using session: ConnectedSession): Unit

Renders any changes for this element and it's children (if any). The element must previously have been added to the session.

Renders any changes for this element and it's children (if any). The element must previously have been added to the session.

Attributes

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

Attributes

Inherited from:
HasStyle