AdvertiserDisclosure

Storybook
GitHub

Description

Advertiser disclosure, usually used for how we make money.

Loading examples...

<AdvertiserDisclosure>

enableAnalytics

boolean

Flag to enable bedrock analytics tracking.

Default

false

children

node

@deprecated - as of v5.6 allowing custom text or elements to render within the Popover will not be supported. See Changelog for details.

Default

null

color

string

@deprecated - as of v5.5 changing link color will not be possible. See Changelog for details.

Default

null

label

string

@deprecated - as of v5.5 changing label will not be supported. See Changelog for details.

Default

null

onBackground

boolean

Flag to indicate if component is not on a white background.

Default

false

shouldDelay

boolean

Flag to set a longer delay on the appearance of the Popover.

Default

true

type

PRODUCT_TYPES.CREDIT_CARDS | PRODUCT_TYPES.INVESTING

String to indicate which type of advertiser disclosure message to render. Stems from the canoncial marketplace PRODUCT_TYPE fields. Currently supports

0) credit_cards (default) 1) investing

More types can be added as needed.

Default

PRODUCT_TYPES.CREDIT_CARDS

Installing this package

npm install --save @nerdwallet/react-advertiser-disclosure

Features to Consider Adding in the Future

  • ⚠️None documented so far!⚠️

Live Demo

Example on NerdWallet

  • Ask Moxi Zhou to link to an example of this component being used in production.

Feedback

This package was originally created by Moxi Zhou. If this README feels too sparse, ask Moxi Zhou or another contributor(click history to see contributors) to update it.