Skip to content

Commit bb9cce7

Browse files
committed
Support a highlights section
1 parent 5840b7a commit bb9cce7

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed

src/css/custom.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,62 @@ code {
10781078
border-width: 1px;
10791079
}
10801080

1081+
.feature-grid ul {
1082+
list-style: none;
1083+
padding-left: 0;
1084+
display: grid;
1085+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
1086+
gap: var(--ifm-spacing-horizontal);
1087+
1088+
li + li {
1089+
margin-top: 0;
1090+
}
1091+
1092+
li {
1093+
position: relative;
1094+
border-radius: var(--ifm-global-radius);
1095+
overflow: hidden;
1096+
box-shadow:
1097+
0 0 0 1px rgba(0, 0, 0, 0.05),
1098+
var(--ifm-global-shadow-lw);
1099+
1100+
& > .video-player {
1101+
margin: 0;
1102+
box-shadow: none;
1103+
border-radius: 0 !important;
1104+
border-bottom: 1px solid var(--ifm-toc-border-color);
1105+
1106+
video {
1107+
aspect-ratio: 2 / 1;
1108+
width: 100%;
1109+
object-fit: cover;
1110+
border-radius: 0;
1111+
}
1112+
1113+
.video-player-icon {
1114+
display: none;
1115+
}
1116+
}
1117+
1118+
& > p {
1119+
font-weight: var(--ifm-font-weight-semibold);
1120+
margin: calc(var(--ifm-spacing-vertical) / 2)
1121+
var(--ifm-spacing-horizontal);
1122+
1123+
& > a {
1124+
color: inherit;
1125+
text-decoration: none;
1126+
}
1127+
1128+
& > a::after {
1129+
content: '';
1130+
position: absolute;
1131+
inset: 0;
1132+
}
1133+
}
1134+
}
1135+
}
1136+
10811137
.blog-wrapper {
10821138
& .container aside nav {
10831139
margin-top: 2.25rem;

versioned_docs/version-7.x/native-bottom-tab-navigator.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@ const MyTabs = createNativeBottomTabNavigator({
4949
});
5050
```
5151

52+
## Highlights
53+
54+
<div className="feature-grid">
55+
56+
- <video playsInline autoPlay muted loop><source src="/assets/7.x/native-bottom-tabs-ios-search.mp4" /></video>
57+
58+
[Search tab on iOS 26+](#search-tab-on-ios-26)
59+
60+
- <video playsInline autoPlay muted loop><source src="/assets/7.x/native-bottom-tabs-ios-bottom-accessory.mp4" /></video>
61+
62+
[Bottom accessory](#bottomaccessory)
63+
64+
- <video playsInline autoPlay muted loop><source src="/assets/7.x/native-bottom-tabs-ios-minimize.mp4" /></video>
65+
66+
[Minimize on scroll](#tabbarminimizebehavior)
67+
68+
</div>
69+
5270
## Notes
5371

5472
- Liquid Glass effect on iOS 26+ requires your app to be built with Xcode 26 or above.

versioned_docs/version-8.x/bottom-tab-navigator.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,24 @@ export default function App() {
7878
}
7979
```
8080

81+
## Highlights
82+
83+
<div className="feature-grid">
84+
85+
- <video playsInline autoPlay muted loop><source src="/assets/7.x/native-bottom-tabs-ios-search.mp4" /></video>
86+
87+
[Search tab on iOS 26+](#search-tab-on-ios-26)
88+
89+
- <video playsInline autoPlay muted loop><source src="/assets/7.x/native-bottom-tabs-ios-bottom-accessory.mp4" /></video>
90+
91+
[Bottom accessory](#bottomaccessory)
92+
93+
- <video playsInline autoPlay muted loop><source src="/assets/7.x/native-bottom-tabs-ios-minimize.mp4" /></video>
94+
95+
[Minimize on scroll](#tabbarminimizebehavior)
96+
97+
</div>
98+
8199
## Native vs Custom implementation
82100

83101
The navigator provides 2 implementations that can be specified using the [`implementation`](#implementation) prop, `native` and `custom`. Many customization options are exclusive to one of the implementations. Make sure to check the documentation of each option to see which implementation it supports.

0 commit comments

Comments
 (0)