Skip to main content

NeedHelp

Provides in-app help content, always at the bottom of the page

Submit feedback
github
import { NeedHelp } from '@uhg-abyss/mobile';
<NeedHelp heading="Completed Health Screen:" paragraph="Review of your results are ready.">
<NeedHelp.Button>Go To Results</NeedHelp.Button>
</NeedHelp>

Heading and Paragraph

The heading and paragraph props are used to set the heading and paragraph of NeedHelp. Both props are required. The paragraph can also take a node.

Children

Add Children to the NeedHelp component by simply placing elements between the NeedHelp tags. Children should be used for adding either a link or button. Links and buttons can be added with the NeedHelp.Link and NeedHelp.Button components, respectively.

NeedHelp Props

Prop NameTypeDefaultDescription
childrennode-The contents of the NeedHelp component
headingstring-Sets the heading for the NeedHelp
paragraphstring || node-Sets the paragraph for the NeedHelp

NeedHelp.Link Props

Prop NameTypeDefaultDescription
afterReactNode-Insert element into link component after children
beforeReactNode-Insert element into link component before children
childrenReactNode-Set the text of the link
hrefstring-Set the URL of the link

NeedHelp.Button Props

Prop NameTypeDefaultDescription
childrennode-The contents of the button component
icon{ name: string, variant?: string } | React.ReactNode | string | Function-Configuration for an icon to display in the button
iconPosition'leading' | 'trailing' | 'iconOnly'falseWhen true, displays only the icon in a circular button
isDisabledbooleanfalseFlag to disable the button
isLoadingbooleanfalseFlag to show loading spinner within the button
onPressfunction-Callback fired when the button is pressed

NeedHelp Classes

Class NameDescription
abyss-need-help-children-containerNeedHelp children container
abyss-need-help-headingNeedHelp heading element
abyss-need-help-rootNeedHelp root element
abyss-need-help-textNeedHelp text element

NeedHelp.Link Classes

Extends Abyss - Link Classes
Class NameDescription
abyss-need-help-link-rootNeedHelp link element

NeedHelp.Button Classes

Class NameDescription
abyss-need-help-button-rootNeedHelp link element

NeedHelp Tokens

Token NameValue
need-help.color.surface.container
#EEF8FB
need-help.color.border.container
#CBCCCD
need-help.color.text.heading
#002677
need-help.color.text.paragraph
#4B4D4F
need-help.border-width.top.container
1
need-help.spacing.padding.horizontal.container
16
need-help.spacing.padding.vertical.container
24
need-help.spacing.gap.vertical.container
16
need-help.spacing.gap.vertical.text
2

NeedHelp Props

V2V1Status
childrenchildrenUnchanged
headingtitleRenamed
paragraphdescriptionRenamed
Table of Contents