harana / scalajs-react-avatar

Scala.js facade for the react-avatar library.

GitHub

scalajs-react-avatar

Build Status Maven Central Scala.js

Scala.js facade for the react-avatar library.

Setup

SBT

Add these dependencies to your build file:

libraryDependencies ++= Seq(
  "com.github.japgolly.scalajs-react" %%% "core" % "1.2.3",
  "com.github.japgolly.scalajs-react" %%% "extra" % "1.2.3",
  "com.harana" %%% "scalajs-react-avatar" % "1.1.0"
)

The artifacts are published to Sonatype so ensure you have it included:

resolvers += Resolver.sonatypeRepo("releases")

Usage

Examples:

Avatar(twitterHandle="google")
Avatar(facebookId="apple", size=50)
Avatar(name="Harana", round="10px")
Avatar(src="http://www.gravatar.com/avatar/a16a38cdfe8b2cbd38e8a56ab93238d3", size=50)

Demo

This will start a web server on http://localhost:8080:

sbt 
fastOptJS::webpack
demo/compile:fastOptJS::startWebpackDevServer

License

BSD 3

Harana

Harana is an AI-powered data catalog.

It automatically imports metadata from all your favourite tools: Confluence, AWS Glue, Kafka, PostgreSQL, MySQL, Oracle, SQL Server, IBM DB2, SQLite, Hive, CouchDB, MongoDB, HBase, Cassandra, ElasticSearch, DynamoDB, Salesforce, SugarCRM, Excel, CSV, XML, JSON.