Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vertical tab ribbon + add more to preview app #925

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ export const VerticalTabsTrigger = React.forwardRef<
'overflow-clip pr-inline-flex pr-w-[116px] pr-cursor-pointer pr-items-center pr-justify-center pr-break-words pr-rounded-sm pr-border-0 pr-bg-muted pr-px-3 pr-py-1.5 pr-text-sm pr-font-medium pr-text-inherit pr-ring-offset-background pr-transition-all hover:pr-text-foreground focus-visible:pr-outline-none focus-visible:pr-ring-2 focus-visible:pr-ring-ring focus-visible:pr-ring-offset-2 disabled:pr-pointer-events-none disabled:pr-opacity-50 data-[state=active]:pr-bg-background data-[state=active]:pr-text-foreground data-[state=active]:pr-shadow-sm',
className,
)}
>
<div className="pr-flex pr-flex-col pr-justify-center">
<div>{props.value}</div>
</div>
</TabsPrimitive.Trigger>
/>
));

export const VerticalTabsContent = React.forwardRef<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ThemeToggle from '@/preview/theme-toggle.component';
import {
BookChapterControl,
RefSelector,
SearchBar,
VerticalTabs,
VerticalTabsContent,
VerticalTabsList,
Expand All @@ -22,10 +23,15 @@ function Compositions() {
return (
<VerticalTabs defaultValue="Book Chapter Control">
<VerticalTabsList>
<VerticalTabsTrigger value="Search Bar">Search Bar</VerticalTabsTrigger>
<VerticalTabsTrigger value="Book Chapter Control">Book Chapter Control</VerticalTabsTrigger>
<VerticalTabsTrigger value="Theme Toggle">Theme Toggle</VerticalTabsTrigger>
</VerticalTabsList>

<VerticalTabsContent value="Search Bar">
<SearchBar onSearch={() => {}} />
</VerticalTabsContent>

<VerticalTabsContent value="Book Chapter Control">
<RefSelector scrRef={scrRef} handleSubmit={setScrRef} />
<div className="bcv-control-div">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ function Example() {
return (
<VerticalTabs defaultValue="Window">
<VerticalTabsList>
<VerticalTabsTrigger value="Window">Window / Tab</VerticalTabsTrigger>
<VerticalTabsTrigger value="Window">Window or Tab</VerticalTabsTrigger>
<VerticalTabsTrigger value="Settings">Settings (n/a)</VerticalTabsTrigger>
</VerticalTabsList>

<VerticalTabsContent value="Window">
Expand Down
Loading