docs/components
Robert Sese 33c05d81ce
Change product landing page `introLinks` to a general map of link titles to links (#26360)
* Add cta button to frontmatter and context

* Add cta to Page

* Render cta button in product landing hero

* Handle external links

* Add simple unit test for cta link

* Address feedback

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Actually push condition update

* Show it's an external link

* Refactor FullLink so we use Link once

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Custom link can also be null

* Rename 'cta' to 'custom' and make it the last introLink

* Update tests with 'cta' to 'custom' change

* Filter once

* Revert "Filter once"

This reverts commit a3f9a8a06b505d77fed47ca96a66c187c86c3c91.

* Update introLinks to a map of titles and URLs

* No more custom introLink in LandingHero

* Simplify introLinks processing

* introLinks can also be null

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* more concise

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* No longer necessary with the a plain introLinks map

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* '.entries()` is simpler

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* 'link' could be false depending on what version you're on

* Update test for new introLinks

Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2022-04-01 11:01:37 -05:00
..
article Merge branch 'main' into pwsh-commands 2022-03-18 09:23:02 +10:00
context Change product landing page `introLinks` to a general map of link titles to links (#26360) 2022-04-01 11:01:37 -05:00
guides Upgrade primer/components -> primer/react (#25591) 2022-02-24 00:30:14 +00:00
homepage unbreak React unique key prop warning (#23279) 2021-12-01 22:39:07 +00:00
hooks Upgrade primer/components -> primer/react (#25591) 2022-02-24 00:30:14 +00:00
landing Change product landing page `introLinks` to a general map of link titles to links (#26360) 2022-04-01 11:01:37 -05:00
lib adding copy button click event (#26074) 2022-03-09 15:55:17 -08:00
page-footer Update Support.tsx 2022-03-14 08:32:20 -07:00
page-header remove GHEC signup button for dotcom_user cookied users (#26521) 2022-03-29 20:21:38 +00:00
playground Version actions for GHES, use reusables (#26004) 2022-04-01 09:36:17 +10:00
release-notes Upgrade primer css (#25634) 2022-02-24 21:33:10 +00:00
rest change error codes table to all status codes table (#26518) 2022-03-29 13:16:34 -07:00
sidebar Sidebar Nav improvements (#21500) 2022-03-10 09:42:20 -08:00
ui adding observer disconnect (#26228) 2022-03-15 16:54:32 -07:00
DefaultLayout.tsx Move mini tocs rest + collapsible (#26069) 2022-03-14 10:50:53 -07:00
GenericError.tsx Update GenericError.tsx 2022-03-14 08:25:48 -07:00
Link.tsx Picker improvements (#21765) 2021-09-30 20:22:13 +00:00
README.md React Cleanup: Documentation (#20517) 2021-07-27 09:07:18 -07:00
Search.module.scss make octicon search svgs cached longer (#25421) 2022-02-16 17:11:43 +00:00
Search.tsx Upgrade primer/components -> primer/react (#25591) 2022-02-24 00:30:14 +00:00
declarations.d.ts remove prerendered response rest docs (#25652) 2022-03-04 21:24:46 +00:00

README.md

Components

⚠️ This area is a work-in-progress.

This is the main source for our React components. They can be rendered by the server or the client via Next.js. The starting point for any component usage is the pages/ directory, which uses a file-system routing paradigm to match paths to pages that then render these components.