lucuma.react.primereact.InputGroup.scala Maven / Gradle / Ivy
The newest version!
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA)
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause
package lucuma.react.primereact
import japgolly.scalajs.react.*
import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.react.common.*
case class InputGroup(mods: TagMod*) extends ReactFnProps(InputGroup.component):
def apply(moreMods: TagMod*): InputGroup = InputGroup((mods ++ moreMods)*)
object InputGroup:
private type Props = InputGroup
private val component = ScalaFnComponent[Props]: props =>
<.div(Css("p-inputgroup"), props.mods.toTagMod)
case class Addon(mods: TagMod*) extends ReactFnProps(Addon.component):
def apply(moreMods: TagMod*): Addon = Addon((mods ++ moreMods)*)
object Addon:
private type Props = Addon
private val component = ScalaFnComponent[Props]: props =>
<.span(Css("p-inputgroup-addon"), props.mods.toTagMod)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy