Skip to content

Commit 99bf7c1

Browse files
committed
docs(storybook): document the default slot
1 parent aed2482 commit 99bf7c1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/uui-label/lib/uui-label.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { LitElement, html, css } from 'lit';
21
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
2+
import { css, html, LitElement } from 'lit';
33
import { property } from 'lit/decorators.js';
44

55
/**
66
* Label element for Custom Element
77
* @element uui-label
8-
* @slot - for the label text.
8+
* @slot default - for the label text.
99
*/
1010
@defineElement('uui-label')
1111
export class UUILabelElement extends LitElement {

packages/uui-label/lib/uui-label.story.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ export default {
99
id: 'uui-label',
1010
title: 'Inputs/Label',
1111
component: 'uui-label',
12+
parameters: {
13+
controls: {
14+
include: ['disabled', 'required'],
15+
},
16+
},
1217
};
1318

1419
const Template: Story = props => html`

0 commit comments

Comments
 (0)