File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 3
3
SelectOnlyMixin ,
4
4
} from '@umbraco-ui/uui-base/lib/mixins' ;
5
5
import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
6
- import { css , LitElement } from 'lit' ;
6
+ import { css , html , LitElement } from 'lit' ;
7
7
import { property } from 'lit/decorators.js' ;
8
8
9
9
import { UUICardEvent } from './UUICardEvent' ;
@@ -12,6 +12,7 @@ import { UUICardEvent } from './UUICardEvent';
12
12
* @element uui-card
13
13
* @fires {UUICardEvent } open - fires when the card title is clicked.
14
14
* @description - Base card component to be extended by specific card elements.
15
+ * @slot - Default content.
15
16
*/
16
17
@defineElement ( 'uui-card' )
17
18
export class UUICardElement extends SelectOnlyMixin (
@@ -158,6 +159,10 @@ export class UUICardElement extends SelectOnlyMixin(
158
159
e . stopPropagation ( ) ;
159
160
this . dispatchEvent ( new UUICardEvent ( UUICardEvent . OPEN ) ) ;
160
161
}
162
+
163
+ protected render ( ) {
164
+ return html `< slot > </ slot > ` ;
165
+ }
161
166
}
162
167
163
168
declare global {
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ const Template: Story = () => html`
18
18
Card is a Component that provides the basics for a Card component. This can
19
19
be extended in code to match a certain need.
20
20
</ p >
21
+
22
+ < uui-card selectable >
23
+ < h5 class ="uui-h5 "> Context of the card< h5 >
24
+ </ uui-card >
21
25
` ;
22
26
23
27
export const AAAOverview = Template . bind ( { } ) ;
You can’t perform that action at this time.
0 commit comments