Skip to content

Commit 9a2dc8e

Browse files
uui-button slot documentation (#453)
Co-authored-by: Niels Lyngsø <[email protected]>
1 parent d2e8c0e commit 9a2dc8e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/uui-base/lib/mixins/LabelMixin.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import { property, state } from 'lit/decorators.js';
44
type Constructor<T = {}> = new (...args: any[]) => T;
55

66
export declare class LabelMixinInterface {
7+
/**
8+
* Label to be used for aria-label and potentially as visual label for some components
9+
* @type {string}
10+
* @prop
11+
* @attr
12+
*/
713
label: string;
814
protected renderLabel(): TemplateResult;
915
}
@@ -21,8 +27,6 @@ export const LabelMixin = <T extends Constructor<LitElement>>(
2127
) => {
2228
/**
2329
* Label mixin class containing the label functionality.
24-
*
25-
* @slot - Override the default label
2630
*/
2731
class LabelMixinClass extends superClass {
2832
/**

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ export type UUIButtonType = 'submit' | 'button' | 'reset';
2121
/**
2222
* @element uui-button
2323
* @fires {UUIButtonEvent} click - fires when the element is clicked
24+
* @slot - for default content
25+
* @slot label - for label content
2426
* @slot extra - for extra
25-
* @description - All-round button
27+
* @description - All-around button
2628
* @cssprop --uui-button-height - overwrite the button height
2729
* @cssprop --uui-button-border-width - overwrite the border width
2830
* @cssprop --uui-button-border-radius - overwrite the border radius

0 commit comments

Comments
 (0)