File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- import { LitElement , html , css } from 'lit' ;
2
1
import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
3
- import { property } from 'lit/decorators.js' ;
4
2
import {
5
- InterfaceLookType ,
6
3
InterfaceLookDefaultValue ,
4
+ InterfaceLookType ,
7
5
} from '@umbraco-ui/uui-base/lib/types' ;
6
+ import { css , html , LitElement } from 'lit' ;
7
+ import { property } from 'lit/decorators.js' ;
8
8
9
9
/**
10
10
*
11
11
* @element uui-tag
12
12
* @description Tag component from Umbraco UI components library. Comes in one shape, but different looks and sizes
13
- * @slot - for tag contents
13
+ * @slot default - slot for tag contents
14
14
* @cssprop --uui-tag-font-size - overwrite the default font-size for the tag.
15
15
*/
16
16
@defineElement ( 'uui-tag' )
@@ -78,9 +78,7 @@ export class UUITagElement extends LitElement {
78
78
79
79
/**
80
80
* Defines the look of the tag.
81
- * @type {''|'primary'|'secondary'|'outline'|'placeholder'|'positive'|'warning'|'danger' }
82
81
* @attr
83
- * @default ''
84
82
*/
85
83
@property ( { reflect : true } )
86
84
public look : InterfaceLookType = InterfaceLookDefaultValue ;
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ export default {
10
10
id : 'uui-tag' ,
11
11
args : {
12
12
look : '' ,
13
- slot : 'Hello' ,
13
+ default : 'Hello' ,
14
14
} ,
15
15
argTypes : {
16
- slot : { table : { category : 'slots' } , control : { type : 'text' } } ,
16
+ default : { table : { category : 'slots' } , control : { type : 'text' } } ,
17
17
look : {
18
18
options : [
19
19
'primary' ,
@@ -25,11 +25,12 @@ export default {
25
25
'danger' ,
26
26
] ,
27
27
} ,
28
+ '--uui-tag-font-size' : { control : { type : 'text' } } ,
28
29
} ,
29
30
} ;
30
31
31
32
const Template : Story = props => html `
32
- < uui-tag .look =${ props . look } > ${ props . slot } </ uui-tag >
33
+ < uui-tag .look =${ props . look } > ${ props . default } </ uui-tag >
33
34
` ;
34
35
35
36
export const AAAOverview = Template . bind ( { } ) ;
@@ -75,6 +76,9 @@ export const Sizing: Story = props =>
75
76
` ;
76
77
77
78
Sizing . parameters = {
79
+ controls : {
80
+ include : [ 'look' ] ,
81
+ } ,
78
82
docs : {
79
83
source : {
80
84
code : `
You can’t perform that action at this time.
0 commit comments