Skip to content

Commit 8ca9c14

Browse files
committed
feat: add rich text section in playground
1 parent b26acfc commit 8ca9c14

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

examples/ui-playground/src/app/playground/shadcn/page-sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const navigationItems = [
3838
{ href: '#toggle-group', label: 'Toggle Group' },
3939
{ href: '#textarea', label: 'Textarea' },
4040
{ href: '#toast', label: 'Toast' },
41+
{ href: '#rich-text-editor', label: 'Rich Text Editor' },
4142
{ href: '/playground/shadcn/sidebar', label: 'Sidebar' },
4243
]
4344

examples/ui-playground/src/app/playground/shadcn/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { LinkSection } from './link-section'
1818
import PageSidebar from './page-sidebar'
1919
import { PaginationSection } from './pagination-section'
2020
import { ProgressSection } from './progress-section'
21+
import { RichTextSection } from './rich-text-section'
2122
import { SelectSection } from './select-section'
2223
import { SliderSection } from './slider-section'
2324
import { SwitchSection } from './switch-section'
@@ -128,6 +129,10 @@ export default function ComboboxPage() {
128129
Toast
129130
</Typography>
130131
<ToastSection />
132+
<Typography type="h2" weight="bold" id="rich-text-editor">
133+
Rich Text Editor
134+
</Typography>
135+
<RichTextSection />
131136
</div>
132137
<React.Suspense fallback={null}>
133138
<PageSidebar />
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { RichTextEditor } from '@genseki/react/v2'
2+
3+
import { PlaygroundCard } from '../../../components/card'
4+
import { editorProviderProps } from '../../../components/slot-before'
5+
6+
export const RichTextSection = () => {
7+
return (
8+
<PlaygroundCard title="Basic RichtextEditor" categoryTitle="Component">
9+
<RichTextEditor editorProviderProps={editorProviderProps} />
10+
</PlaygroundCard>
11+
)
12+
}

0 commit comments

Comments
 (0)