Skip to content

Commit

Permalink
feat(separator): added ssr example
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Dec 6, 2024
1 parent f13bd4d commit e9f2bd2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/radix-ssr-testing/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import { RouterModule } from '@angular/router';
imports: [RouterModule],
template: `
<h1>SSR / RSC testing</h1>
<div style="display: flex; gap: 10em;">
<div style="display: flex; gap: 7em;">
<div style="display: flex; flex-direction: column; gap: 0.5em;">
<a href="/accordion">Accordion</a>
<a href="/avatar">Avatar</a>
<a href="/collapsible">Collapsible</a>
<a href="/checkbox">Checkbox</a>
<a href="/select">Select</a>
<a href="/separator">Separator</a>
<a href="/slider">Slider</a>
<a href="/tabs">Tabs</a>
</div>
Expand Down
4 changes: 4 additions & 0 deletions apps/radix-ssr-testing/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export const appRoutes: Route[] = [
path: 'select',
loadComponent: () => import('./components/select/select.component')
},
{
path: 'separator',
loadComponent: () => import('./components/separator/separator.component')
},
{
path: 'slider',
loadComponent: () => import('./components/slider/slider.component')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@radix-ng/primitives/checkbox';

@Component({
selector: 'app-avatar',
selector: 'app-checkbox',
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [RdxCheckboxDirective, RdxCheckboxButtonDirective, RdxCheckboxIndicatorDirective],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { RdxSeparatorRootDirective } from '@radix-ng/primitives/separator';

@Component({
selector: 'app-separator',
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [RdxSeparatorRootDirective],
template: `
<div rdxSeparatorRoot>***</div>
`
})
export default class SeparatorComponent {}

0 comments on commit e9f2bd2

Please sign in to comment.