Skip to content

Commit d6564cc

Browse files
authored
build: add MDC components to SSR kitchen sink (#19013)
Adds the radio button and card components to the kitchen sink so we can catch server-side rendering errors.
1 parent b225b87 commit d6564cc

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

src/universal-app/kitchen-sink-mdc/kitchen-sink-mdc.html

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,25 @@ <h2>Button</h2>
1414

1515
<h2>MDC card</h2>
1616

17-
<!-- TODO: Copy kitchen sink examples for mat-card here -->
18-
Not yet implemented.
17+
<mat-card>
18+
Simple card
19+
</mat-card>
20+
21+
<mat-card>
22+
<mat-card-title>Complicated card</mat-card-title>
23+
<mat-card-subtitle>Subtitle</mat-card-subtitle>
24+
<mat-card-content>
25+
<p>This is some stuff</p>
26+
<p>And more stuff</p>
27+
</mat-card-content>
28+
<mat-card-actions>
29+
<button mat-button>LIKE</button>
30+
<button mat-button>SHARE</button>
31+
</mat-card-actions>
32+
<mat-card-footer>
33+
Hurray
34+
</mat-card-footer>
35+
</mat-card>
1936

2037
<h2>MDC checkbox</h2>
2138

@@ -48,10 +65,20 @@ <h2>MDC menu</h2>
4865
<button mat-menu-item disabled>Sombra</button>
4966
</mat-menu>
5067

51-
<h2>MDC radio</h2>
68+
<h2>MDC Radio buttons</h2>
5269

53-
<!-- TODO: Copy kitchen sink examples for mat-radio here -->
54-
Not yet implemented.
70+
<h3>MDC Radio group</h3>
71+
<mat-radio-group>
72+
<mat-radio-button>Charmander</mat-radio-button>
73+
<mat-radio-button>Squirtle</mat-radio-button>
74+
<mat-radio-button>Bulbasaur</mat-radio-button>
75+
</mat-radio-group>
76+
77+
<h3>MDC Standalone radios</h3>
78+
<mat-radio-button name="onions">White</mat-radio-button>
79+
<mat-radio-button name="onions">Yellow</mat-radio-button>
80+
<mat-radio-button name="onions">Green</mat-radio-button>
81+
<mat-radio-button name="onions" disabled>Red</mat-radio-button>
5582

5683
<h2>MDC slide-toggle</h2>
5784

0 commit comments

Comments
 (0)