Icons for separators #1400
Answered
by
fuma-nama
Taib-Rabah
asked this question in
Q&A
-
I'm trying to customize the sidebar default Example:
{
"pages": ["index", "[Link]---Links---", "..."]
}
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<DocsLayout
tree={source.pageTree}
{...baseOptions}
sidebar={{
components: {
Separator: ({ item: { name, type, icon } }) => (
<MySeparator>
{icon}
{name}
</MySeparator>
),
},
}}
>
{children}
</DocsLayout>
);
} |
Beta Was this translation helpful? Give feedback.
Answered by
fuma-nama
Feb 10, 2025
Replies: 1 comment
-
Not added yet because I found it looks kinda weird visually, will add this later |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Taib-Rabah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not added yet because I found it looks kinda weird visually, will add this later