Skip to content

Commit 3d1ec59

Browse files
Synchronise tabs in website (#4331)
## Related Issues fixes #4330 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Documentation - Tab groups in provider docs now share selection state across related examples, so switching a tab in one snippet keeps the same selection in other corresponding snippets—making comparisons and navigation smoother and reducing repetitive clicks. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Kunal U Powar <k.powar@ext.efg.gg>
1 parent daa51ba commit 3d1ec59

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

website/docs/concepts2/providers.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ as per the table above.
134134
<Tabs>
135135
<TabItem value="Unmodifiable" label="Unmodifiable (functional)">
136136

137-
<Tabs>
137+
<Tabs groupId="riverpod">
138138
<TabItem value="riverpod" label="riverpod">
139139
<Legend
140140
code={`
@@ -290,7 +290,7 @@ The type of this object is determined by the name of the function/class.
290290
</TabItem>
291291

292292
<TabItem value="Modifiable" label="Modifiable (notifier)">
293-
<Tabs>
293+
<Tabs groupId="riverpod">
294294
<TabItem value="riverpod" label="riverpod">
295295
<Legend
296296
code={`final name = SomeNotifierProvider.someModifier<MyNotifier, Result>(MyNotifier.new);

website/src/components/CodeSnippet/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function AutoSnippet(props: {
185185
}
186186

187187
return (
188-
<Tabs>
188+
<Tabs groupId="riverpod">
189189
{tab(props.raw, "riverpod")}
190190
{tab(props.hooks, "riverpod + flutter_hooks")}
191191
{tab(props.codegen, "riverpod_generator")}

0 commit comments

Comments
 (0)