You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`borderColor`|`border-color`|`String`| "undefined" | Sets the border color for all child tails in the group. Does not apply to diagonal layout. |
40
-
|`layout`|`layout`|`String`| "horizontal" | Sets the layout direction for the group ('horizontal' or 'vertical'). Default is 'horizontal'. |
41
-
|`size`|`size`|`String`| "lg" | Sets the size for all child tails in the group ('xs', 'sm', 'md', 'lg'). Default is 'lg'. xl and 2xl sizes are not supported in groups. |
Copy file name to clipboardExpand all lines: docs/partials/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ This file is generated based on a template fetched from `./docs/partials/index.m
34
34
There are two important parts of every Auro component. The <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element. The class is exported and then used as part of defining the Web Component. When importing this component as described in the <ahref="#install">install</a> section, the class is imported and the `auro-tail` custom element is defined automatically.
35
35
36
36
To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our `AuroTail.register(name)` method and pass in a unique name.
Copy file name to clipboardExpand all lines: src/auro-tail-group.js
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ import groupStyleCss from './styles/auro-tail-group.scss';
6
6
/**
7
7
* The auro-tail-group element displays multiple auro-tail elements in a grouped layout. When tails are placed within a group, labels/links and badge logos are not displayed, and only two tails can be paired together.
8
8
*
9
-
* @attr {String} layout - Sets the layout direction for the group ('horizontal' or 'vertical'). Default is 'horizontal'.
10
-
* @attr {String} size - Sets the size for all child tails in the group ('xs', 'sm', 'md', 'lg'). Default is 'lg'. xl and 2xl sizes are not supported in groups.
9
+
* @attr {'horizontal'|'diagonal'} layout - Sets the layout direction for the group.
10
+
* @attr {'xs'|'sm'|'md'|'lg'} size - Sets the size for all child tails in the group.
11
11
* @attr {String} border-color - Sets the border color for all child tails in the group. Does not apply to diagonal layout.
12
12
*/
13
13
exportclassAuroTailGroupextendsLitElement{
@@ -33,7 +33,9 @@ export class AuroTailGroup extends LitElement {
33
33
34
34
constructor(){
35
35
super();
36
+
/** @type {'horizontal'|'diagonal'} */
36
37
this.layout='horizontal';
38
+
/** @type {'xs'|'sm'|'md'|'lg'} */
37
39
this.size='lg';
38
40
/** @type {string|undefined} */
39
41
this.borderColor=undefined;
@@ -46,7 +48,9 @@ export class AuroTailGroup extends LitElement {
46
48
47
49
/**
48
50
* Prevent shadow DOM creation for unsupported sizes
0 commit comments