Sha256: cd48e390723e3834eb01e7bb20baedbd30d40a2a9fe1e4dfce6101cba176e58d

Contents?: true

Size: 1.62 KB

Versions: 948

Compression:

Stored size: 1.62 KB

Contents

import React from "react";
import { Avatar } from 'playbook-ui'

const AvatarBadgeComponentOverlay = () => {
    return (
        <div>
            <Avatar
                componentOverlay={{
                    component: "badge",
                    placement: "bottom-right",
                    text: "12"
                }}
                imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
                marginBottom="sm"
                size="sm"
            />

            <Avatar
                componentOverlay={{
                    component: "badge",
                    placement: "top-left",
                    text: "12"
                }}
                imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
                marginBottom="sm"
                size="md"
            />

            <Avatar
                componentOverlay={{
                    component: "badge",
                    placement: "top-center",
                    text: "On Roadtip",
                    variant: "info"
                }}
                imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
                marginBottom="sm"
                size="lg"
            />

            <Avatar
                componentOverlay={{
                    component: "badge",
                    placement: "bottom-center",
                    text: "Out of Office",
                    variant: "error"
                }}
                imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
                marginBottom="sm"
                size="xl"
            /> 
        </div>
    )
}

export default AvatarBadgeComponentOverlay

Version data entries

948 entries across 948 versions & 2 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.11.0 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui_docs-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx