-
Notifications
You must be signed in to change notification settings - Fork 42
CTA
Core
Functional
UI component
This CTA (call to action) component allows one to quickly switch between a couple different CTAs easily based on a given scenario. This makes it easy to offer them all without building that logic every-time, or just as easily limit the number of options for a specific pattern.
Dependencies (9)
- Link with icon
- Feature card
- Card link
- Button group
- Card
- Lightbox media viewer
- Carbon icons
- Video service
- Smooth scrolling utility
Used by (12)
- Data model
- Card section carousel
- Card group
- Content block
- Content group
- Content item
- Content section
- Feature section
- Universal banner
- Card in card
- Link list
- Quote
Back links (24)
CTA block (1)
- user towards a next step of action. The CTA has a couple different
Callout media (2)
- CTA. This component should sit inside of the...
- ...|
CTA
|null
| Do not use its CTA.
Card in card (1)
- CTA functionality to it. The Image expands to...
Card link (1)
- ...is typically intended to be used by the CTA
- and CTA Cards into a single section decorator that...
- additional resources via a CTA, and
- card CTA
- and ends with a CTA
Content block (2)
- optional CTA that allows a user to navigate to related...
- See CTA for more
Content group (2)
- optional CTA that allows a user to navigate to related...
- See CTA for more
- CTAs in a horizontally-distributed column
Content item (3)
- CTA. Because of its type size and spacing it is...
- optional CTA that allows a user to navigate to related...
- See CTA for more
Content section (2)
- optional section level CTA that allows a user to navigate to
- See CTA for more
Data model (1)
cta
| CTA
Feature section (1)
- and a CTA using a static Feature card allowing for...
Universal banner (2)
- optional CTA that helps navigate users to more information...
- See CTA for more
1.0.2
|present
| Enable component's CTA, and adjusts visuals
The CTA is made up of various types that add a consistent functionality/behavior and iconography across the different styles 2 of CTAs.
default
The local link is mainly used to navigate a user to another destination within IBM.com.
condition | description | ||
---|---|---|---|
1.1.1 |
type === 'local' OR undefined
|
Icon should be set to ArrowRight
|
The jump link visually uses the down arrow to indicate to the user this link jumps down the page.
condition | description | ||
---|---|---|---|
1.2.1 |
type === 'jump' |
Icon should be set to ArrowDown
|
name | description | |
---|---|---|
1.2.2 |
onClick |
When this particular CTA link type is clicked it’ll disable the anchor link and smoothly scroll the user down the page to the provided name or id . |
The external link provides a visual indicator that this link leaves the page, and opens the link within a new tab so the IBM page they were looking at will stay there.
condition | description | ||
---|---|---|---|
1.3.1 |
type === 'external' |
Icon should be set to Launch
|
name | description | |
---|---|---|
1.3.2 |
onClick |
When this particular CTA link type is clicked it should target=“_blank” for a new tab. |
The video type CTA uses the Video service to populate the CTA and Lightbox media viewer's content if not provided, and launches within the Lightbox media viewer to play the Video.
condition | description | ||
---|---|---|---|
1.4.1 |
type === 'video' AND video.ID
|
Icon should be set to PlayOutline
|
name | description | |
---|---|---|
1.4.2 |
onClick |
When this CTA link type is clicked, it should launch the Lightbox media viewer and begin playing the video. |
The Lightbox media viewer's data model and component should be used in addition to the style chosen from below. See Lightbox media viewer
The download CTA type should be used when you have a file that needs to be downloaded like a PDF, or Excel spreadsheet. Functionality is mostly handled by the browser.
condition | description | ||
---|---|---|---|
1.4.1 |
type === 'download' |
Icon should be set to Download
|
The CTA component wraps a number of our components to allow for different looks and hierarchy depending on the scenario and context. Each style gets the above types 1 that allows them to share functionality.
(default)
The default text style is just a Link with icon. This type of CTA can be used at low levels within the page hierarchy.
condition | description | |
---|---|---|
2.1.1 |
style === 'text' OR undefined
|
Set the data model and component to use: Link with icon |
See Link with icon
condition | description | |
---|---|---|
2.1.2 |
video.id && copy |
pre-filled by Video service's name if not defined. |
Video
duration
is appended after string of text in parenthesis. (e.g.copy string (duration)
)
The button CTA style can communicate the primary and secondary action for a given page to the user.
condition | description | |
---|---|---|
2.2.1 |
style === 'button' |
Set the data model and component to use: Button group |
See Button group
condition | description | |
---|---|---|
2.2.2 |
video.id && copy |
pre-filled by Video service's name if not defined. |
Video
duration
is appended after string of text in parenthesis. (e.g.copy string (duration)
)
The card CTA style is our generic Card that take various forms and content models for flexible Card CTAs.
condition | description | |
---|---|---|
2.3.1 |
style === 'card' |
Set the data model and component to use: Card |
See Card
condition | description | |
---|---|---|
2.3.2 |
video.id && heading |
pre-filled by Video service's name if not defined or explicitly set to false . |
2.3.3 |
video.id && copy |
pre-filled by Video service's description if not defined or explicitly set to false . |
2.3.4 |
video.id && cta copy |
pre-filled by Video service's duration if not defined or explicitly set to false . |
2.4.5 |
video.id && image |
pre-filled by Video service's poster image if not defined or explicitly set to false . |
The feature CTA style is a larger version of Card with an image to really emphasize a specific call to action. It should only be used once within a Content block.
condition | description | |
---|---|---|
2.4.1 |
style === 'feature' |
Set the data model and component to use: Feature card |
See Feature card
condition | description | |
---|---|---|
2.4.2 |
video.id && heading |
pre-filled by Video service's name if not defined. |
2.4.3 |
video.id && copy |
pre-filled by Video service's description if not defined or explicitly set to false . |
2.4.4 |
video.id && cta copy |
pre-filled by Video service's duration if not explicitly set to false . |
2.4.5 |
video.id && image |
pre-filled by Video service's poster image if not defined. |
The card link CTA style is a small Card link that can be used at higher levels within the page hierarchy.
condition | description | |
---|---|---|
2.5.1 |
style === 'cardlink |
Set the data model and component to use: Card link |
See Card link
condition | description | |
---|---|---|
2.5.2 |
video.id && heading |
pre-filled by Video service's name if not defined. |
2.5.3 |
video.id && copy |
pre-filled by Video service's description if not defined or explicitly set to false . |
2.5.4 |
video.id && cta copy |
pre-filled by Video service's duration if not explicitly set to false . |
Publishing guidelines (6)
Layout component (37)
- CTA block
- CTA section
- Callout media
- Callout quote
- Callout
- Card group
- Card section carousel
- Card section images
- Card section offset
- Card section simple
- Card section
- Content block cards
- Content block horizontal
- Content block media
- Content block mixed groups
- Content block segmented
- Content block simple
- Content block
- Content group banner
- Content group cards
- Content group pictograms
- Content group simple
- Content group
- Content item horizontal
- Content item
- Content section
- Dotcom shell
- Feature section
- Lead space block
- Lead space search
- Lead space
- Link list section
- Logo grid
- Table of contents
- Tabs extended media
- Tabs extended
- Universal banner
Service (3)
UI component (34)
- Back to top
- Background media
- Button group
- CTA
- Card in card
- Card link
- Card
- Carousel
- Expressive modal
- Feature card
- Filter group
- Filter panel
- Footer
- Image with caption
- Image
- Input select
- Leaving ibm
- Lightbox media viewer
- Link list
- Link with icon
- Locale modal
- Masthead L0
- Masthead L1
- Masthead account
- Masthead mobile
- Masthead navigation
- Masthead
- Mega menu
- Pictogram item
- Quote
- Search typeahead
- Tag group
- Tag link
- Video