| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Miso.UI.Avatar
Synopsis
- data AvatarProps action = AvatarProps {
- avatarSrc :: MisoString
- avatarAlt :: MisoString
- avatarSize :: Size
- avatarSquare :: Bool
- avatarClasses :: [MisoString]
- avatarAttrs :: [Attribute action]
- defaultAvatarProps :: AvatarProps action
- avatar_ :: AvatarProps action -> View model action
- avatarFallback_ :: [Attribute action] -> [View model action] -> View model action
- avatarGroup_ :: Size -> [Attribute action] -> [View model action] -> View model action
- avatarSample :: View model action
- avatarCodeSample :: View model action
- avatarPropsApi :: View model action
Props
data AvatarProps action Source #
Props for avatar_
Constructors
| AvatarProps | |
Fields
| |
defaultAvatarProps :: AvatarProps action Source #
Smart constructor: small round avatar
Views
avatar_ :: AvatarProps action -> View model action Source #
Avatar, driven by AvatarProps
avatarFallback_ :: [Attribute action] -> [View model action] -> View model action Source #
Initials fallback when no image is available
avatarGroup_ :: Size -> [Attribute action] -> [View model action] -> View model action Source #
Overlapping stack of avatars. Children should be plain img_ views
(the group styles them via [&_img] selectors).
Samples
avatarSample :: View model action Source #
avatarCodeSample :: View model action Source #
avatarPropsApi :: View model action Source #