Skip to main content

IconBrand

Used to implement Brand icons and adapt their properties.

Submit feedback
github
import { IconBrand } from '@uhg-abyss/mobile';
    <IconBrand icon="home" size={48} variant="twotonedarkcircle"/>

    Icons

    Use the icon property to adjust which icon is being selected.

    Size

    Use the size property to adjust the size of an icon by setting it to a specific number, or using a token. The default is $md. Token sizes: $icon-brand.sizing.xs: 40 $icon-brand.sizing.sm: 64 $icon-brand.sizing.md: 96 $icon-brand.sizing.lg: 112 $icon-brand.sizing.xl: 136

    Brand Icon Variants

    Use the variant property to change the style of Brand icons. Available variants are twotonedarkcircle, twotonelightcircle, twotone, onetonedarkcircle, and onetone. The default variant is twotonedarkcircle.

    IconBrand Props

    Prop NameTypeDefaultDescription
    branduhc | optum | uhg-indicates which brand you want your icon from. This changes the colors of the icon to match the brand you select
    disableScalingbooleanfalseSpecifies whether the icon should scale to respect Text Size accessibility settings
    fallbackJSX.Element-Fallback element to render when the icon fails to load
    iconstring-Name of the brand icon
    isScreenReadablebooleanfalseIndicate whether the icon is screen readable or not. If the icon is Screen Readable, then provide a title
    maxFontSizeMultiplierboolean-Specifies the largest possible scale the icon can reach when disableScaling is false
    onErrorfunction-Callback function when the icon fails to load
    onLoadfunction-Callback function when the icon is loaded
    sizenumber | string$icon-brand.sizing.mdSet the size of the brand icon
    titlestring-Set the title of the icon
    varianttwotonedarkcircle | twotonelightcircle | twotone | onetonedarkcircle | onetonetwotonedarkcircleThe style/color variation of the brand icon

    IconBrand Classes

    Class NameDescription
    abyss-icon-brand-rootIcon brand root element

    Abyss uses branded iconography that is designed to aid way-finding, draw attention, and support messaging.

    The source for these design icons can be found in the Brand Icons Library.

    Dynamic Type

    Brand icons do not scale. When using IconBrand, the disabledScaling prop should be set to true.

    IconBrand Tokens

    Token NameValue
    icon-brand.sizing.xs
    40
    icon-brand.sizing.sm
    64
    icon-brand.sizing.md
    96
    icon-brand.sizing.lg
    112
    icon-brand.sizing.xl
    136
    Table of Contents