Image

org.terminal21.client.components.chakra.Image
case class Image(key: String, var src: String, var alt: String, var boxSize: Option[String], var borderRadius: Option[String], var style: Map[String, Any]) 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 UiElement
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

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