| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Miso.UI.Types
Description
Shared types used by the props API of every Miso.UI.* component.
Synopsis
- data Variant
- data Size
- = DefaultSize
- | Small
- | Large
- data Side
- data Align
- variantSuffix :: Variant -> MisoString
- sizeSuffix :: Size -> MisoString
- sideText :: Side -> MisoString
- alignText :: Align -> MisoString
Types
Component sizing
Constructors
| DefaultSize | |
| Small | |
| Large |
Placement side, used by tooltips, popovers and dropdown menus.
Constructors
| TopSide | |
| RightSide | |
| BottomSide | |
| LeftSide |
Placement alignment, used by tooltips, popovers and dropdown menus.
Constructors
| StartAlign | |
| CenterAlign | |
| EndAlign |
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