Commit 0f8cd6d
authored
Support headings in link-list (#1531)
Refactor the `<LinkList>` API to allow headings within link lists.
- `<LinkListItem>` no longer supports link props, the component must now
receive a `<Link>` as a child to which link props are passed. This makes
for a more consistant and more granualar API.
- Extracts all styling from the React implementation of `<LinkList>` to
the tailwind package.
- Removes the `isExternal` prop from the`<LinkListItem>`. External links
are now identified byt the `rel` prop on the `<Link>` child (e.g `<Link
rel="external">`). This is more consistent with how we control the
`DownloadIcon ` (`download` attribute), and it fits nicely with the
`<Link>` API.
- The `<Link>` component has also been extended with an internal
`_innerWrapper` prop, similar to what we have in `Heading` component.
This allows the `<LinkList>` to provide the correct icond for each link.
<img width="1058" height="898" alt="Screenshot 2025-11-18 at 13 11 33"
src="https://github.com/user-attachments/assets/ebbc0c64-56b4-489e-8e60-712ecc2bafeb"
/>
<img width="1072" height="1255" alt="Screenshot 2025-11-18 at 13 12 01"
src="https://github.com/user-attachments/assets/3326fd11-fabf-4ffd-a34f-cc781371804c"
/>1 parent e182020 commit 0f8cd6d
File tree
8 files changed
+510
-165
lines changed- .changeset
- packages
- react/src
- link-list
- link
- tailwind
8 files changed
+510
-165
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments