Skip to content

Commit

Permalink
docs: add list of slots to JSDoc annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jan 16, 2025
1 parent 483e5f7 commit 3538579
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/horizontal-layout/src/vaadin-horizontal-layout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ import { HorizontalLayoutMixin } from './vaadin-horizontal-layout-mixin.js';
* `theme="padding"` | Applies the default amount of CSS padding for the host element (specified by the theme)
* `theme="spacing"` | Applies the default amount of CSS margin between items (specified by the theme)
* `theme="wrap"` | Items wrap to the next row when they exceed the layout width
*
* ### Component's slots
*
* The following slots are available to be set:
*
* Slot name | Description
* -------------------|---------------
* no name | Default slot
* `middle` | Slot for the content placed in the middle
* `end` | Slot for the content placed at the end
*/
declare class HorizontalLayout extends HorizontalLayoutMixin(ThemableMixin(ElementMixin(HTMLElement))) {}

Expand Down
10 changes: 10 additions & 0 deletions packages/horizontal-layout/src/vaadin-horizontal-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ registerStyles('vaadin-horizontal-layout', horizontalLayoutStyles, { moduleId: '
* `theme="spacing"` | Applies the default amount of CSS margin between items (specified by the theme)
* `theme="wrap"` | Items wrap to the next row when they exceed the layout width
*
* ### Component's slots
*
* The following slots are available to be set:
*
* Slot name | Description
* -------------------|---------------
* no name | Default slot
* `middle` | Slot for the content placed in the middle
* `end` | Slot for the content placed at the end
*
* @customElement
* @extends HTMLElement
* @mixes ThemableMixin
Expand Down

0 comments on commit 3538579

Please sign in to comment.