reflex-material-0.0.1.0

Safe HaskellNone
LanguageHaskell2010

Reflex.Material.Common

Synopsis

Documentation

class MdClassText a where #

A type class for converting data types into appropriate MDC class text.

Minimal complete definition

mdText

Methods

mdText :: a -> Text #

class MdHasCustom a where #

Minimal complete definition

custom

Methods

custom :: Text -> a -> a #

IMPORTANT: Implementations of this function should use the accompanying addCustom function to make sure that new values are added on and don't overwrite anything that was already there.

addCustom :: Text -> Maybe Text -> Maybe Text #

Helper function for adding a class item to a custom class field.

class MdHasRole a where #

Minimal complete definition

mdSetRole

Methods

mdSetRole :: MdRole -> a -> a #

Instances

MdHasRole MdButton # 
(Reflex t, MdHasRole a) => MdHasRole (Dynamic t a) # 

Methods

mdSetRole :: MdRole -> Dynamic t a -> Dynamic t a #

primary :: MdHasRole a => a -> a #

accent :: MdHasRole a => a -> a #

class MdHasRaised a where #

Minimal complete definition

raised

Methods

raised :: a -> a #

Instances

MdHasRaised MdButton # 

Methods

raised :: MdButton -> MdButton #

(Reflex t, MdHasRaised a) => MdHasRaised (Dynamic t a) # 

Methods

raised :: Dynamic t a -> Dynamic t a #

class MdHasDark a where #

Minimal complete definition

dark

Methods

dark :: a -> a #

class MdHasActive a where #

Minimal complete definition

active

Methods

active :: a -> a #

Instances

MdHasActive MdButton # 

Methods

active :: MdButton -> MdButton #

(Reflex t, MdHasActive a) => MdHasActive (Dynamic t a) # 

Methods

active :: Dynamic t a -> Dynamic t a #

class MdHasDisabled a where #

Minimal complete definition

disabled

Methods

disabled :: a -> a #

class MdHasSize a where #

Minimal complete definition

mdSetSize

Methods

mdSetSize :: MdSize -> a -> a #

mini :: MdHasSize a => a -> a #

tiny :: MdHasSize a => a -> a #

small :: MdHasSize a => a -> a #

medium :: MdHasSize a => a -> a #

large :: MdHasSize a => a -> a #

big :: MdHasSize a => a -> a #

huge :: MdHasSize a => a -> a #

massive :: MdHasSize a => a -> a #

class MdHasDensity a where #

Minimal complete definition

mdSetDensity

Methods

mdSetDensity :: MdDensity -> a -> a #

compact :: MdHasDensity a => a -> a #

dense :: MdHasDensity a => a -> a #

tshow :: Show a => a -> Text #