miso-ui
Safe HaskellSafe-Inferred
LanguageHaskell2010

Miso.UI.Types

Contents

Description

Shared types used by the props API of every Miso.UI.* component.

Synopsis

Types

data Variant Source #

Style variant shared by button_, badge_, etc.

Instances

Instances details
Show Variant Source # 
Instance details

Defined in Miso.UI.Types

Eq Variant Source # 
Instance details

Defined in Miso.UI.Types

Methods

(==) :: Variant -> Variant -> Bool #

(/=) :: Variant -> Variant -> Bool #

data Size Source #

Component sizing

Constructors

DefaultSize 
Small 
Large 

Instances

Instances details
Show Size Source # 
Instance details

Defined in Miso.UI.Types

Methods

showsPrec :: Int -> Size -> ShowS #

show :: Size -> String #

showList :: [Size] -> ShowS #

Eq Size Source # 
Instance details

Defined in Miso.UI.Types

Methods

(==) :: Size -> Size -> Bool #

(/=) :: Size -> Size -> Bool #

data Side Source #

Placement side, used by tooltips, popovers and dropdown menus.

Instances

Instances details
Show Side Source # 
Instance details

Defined in Miso.UI.Types

Methods

showsPrec :: Int -> Side -> ShowS #

show :: Side -> String #

showList :: [Side] -> ShowS #

Eq Side Source # 
Instance details

Defined in Miso.UI.Types

Methods

(==) :: Side -> Side -> Bool #

(/=) :: Side -> Side -> Bool #

data Align Source #

Placement alignment, used by tooltips, popovers and dropdown menus.

Instances

Instances details
Show Align Source # 
Instance details

Defined in Miso.UI.Types

Methods

showsPrec :: Int -> Align -> ShowS #

show :: Align -> String #

showList :: [Align] -> ShowS #

Eq Align Source # 
Instance details

Defined in Miso.UI.Types

Methods

(==) :: Align -> Align -> Bool #

(/=) :: Align -> Align -> Bool #

Helpers

variantSuffix :: Variant -> MisoString Source #

Suffix used when building basecoat class names (e.g. btn-outline)

sizeSuffix :: Size -> MisoString Source #

Suffix used when building basecoat class names (e.g. btn-sm)

sideText :: Side -> MisoString Source #

Value for data-side attributes

alignText :: Align -> MisoString Source #

Value for data-align attributes