Skip to content
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
30 changes: 30 additions & 0 deletions docs/app/docs/components/accordion/docs/seo/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const metadata = {
title: 'Accordion | Rad UI',
description: 'Accordions are a common UX pattern that can help reduce the amount of information presented to users. They are used to toggle the visibility of content, condensing information and reducing clutter.',
keywords: 'accordion, react component, UI component, collapsible content, expandable panels, rad ui, accessibility, a11y, keyboard navigation, disclosure component',
authors: [{ name: 'Rad UI Team' }, { name: 'Pranay Kothapalli' }],
// openGraph: {
// type: 'website',
// title: 'Accordion Component | Rad UI',
// description: 'An accessible, customizable accordion component for React applications. Toggle content visibility, reduce clutter, and improve user experience.',
// images: [
// {
// url: '/images/components/accordion-og.png',
// width: 1200,
// height: 630,
// alt: 'Rad UI Accordion Component',
// }
// ],
// },
// twitter: {
// card: 'summary_large_image',
// title: 'Accordion Component | Rad UI',
// description: 'An accessible, customizable accordion component for React applications. Toggle content visibility, reduce clutter, and improve user experience.',
// images: ['/images/components/accordion-og.png'],
// },
alternates: {
canonical: 'https://rad-ui.com/docs/components/accordion',
}
}

export default metadata;
7 changes: 7 additions & 0 deletions docs/app/docs/components/accordion/page.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import PageDetails from '@/components/seo/PageDetails';

import Documentation from '@/components/layout/Documentation/Documentation';
import AccordionExample from "./docs/example_1"
import {code, anatomy, keyboardShortcuts, api_documentation} from "./docs/codeUsage"

import seo from "./docs/seo"

export const metadata = seo;

<Documentation
title={`Accordion`}
description='Accordions are a common UX pattern that can help reduce the amount of information presented to users. They are used to toggle the visibility of content, condensing information and reducing clutter.'
>

{/* Component Hero */}
<Documentation.ComponentHero codeUsage={code}>
<AccordionExample />
Expand Down
4 changes: 2 additions & 2 deletions docs/components/ui/Tooltip/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use client"
import Tooltip from "@radui/ui/Tooltip"

const TooltipWrapper = ({ children, label='', ...props }: { children: React.ReactNode, label: string, props: any }) => {
const TooltipWrapper = ({ children, label='', placement='bottom', ...props }: { children: React.ReactNode, label: string, placement: string, props?: any }) => {
return (
<Tooltip.Root {...props}>
<Tooltip.Root {...props} placement={placement}>
<Tooltip.Trigger asChild>
{children}
</Tooltip.Trigger>
Expand Down
Loading