-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better CSS var support for custom scrollbar mixin
* Mixin was renamed to `blue-custom-scrollbar()` and params have changed! * Old `@mixin custom-scrollbar()` is marked as deprecated
- Loading branch information
Showing
11 changed files
with
100 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { useState } from "react" | ||
import MenuItem from "../../components/MenuItem" | ||
import SidebarMenu from "../../components/SidebarMenu" | ||
|
||
export default function MenuItemExample() { | ||
const [navigationSource, setNavigationSource] = useState<"user" | "default">("default") | ||
|
||
return ( | ||
<div className="bg-primary position-relative"> | ||
<SidebarMenu sidebarClass="position-static shadow-none overflow-visible" menuClass="overflow-visible"> | ||
<div className="blue-sidebar-visible-on-open blue-sidebar-menu-horizontal-on-open"> | ||
<MenuItem | ||
label="Default" | ||
labelClassName="text-center w-100" | ||
onClick={() => setNavigationSource("default")} | ||
isActive={navigationSource === "default"} | ||
/> | ||
|
||
<MenuItem | ||
label="User" | ||
labelClassName="text-center w-100" | ||
onClick={() => setNavigationSource("user")} | ||
isActive={navigationSource === "user"} | ||
/> | ||
</div> | ||
</SidebarMenu> | ||
<p className="p-3 bg-body">Resize the browser to see how the sidebar and its items behave.</p> | ||
</div> | ||
) | ||
} |