{ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json", "version": 1.1, "tags": [ { "name": "sl-alert", "description": "Alerts are used to display important messages inline or as toast notifications.\n---\n\n\n### **Events:**\n - **sl-show** - Emitted when the alert opens.\n- **sl-after-show** - Emitted after the alert opens and all animations are complete.\n- **sl-hide** - Emitted when the alert closes.\n- **sl-after-hide** - Emitted after the alert closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the alert.\n- **hide()** - Hides the alert\n- **toast()** - Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\ndismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\ncalling this method again. The returned promise will resolve after the alert is hidden.\n\n### **Slots:**\n - _default_ - The alert's main content.\n- **icon** - An icon to show in the alert. Works best with ``.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the optional icon.\n- **message** - The container that wraps the alert's main content.\n- **close-button** - The close button, an ``.\n- **close-button__base** - The close button's exported `base` part.", "attributes": [ { "name": "open", "description": "Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the alert's open state.", "values": [] }, { "name": "closable", "description": "Enables a close button that allows the user to dismiss the alert.", "values": [] }, { "name": "variant", "description": "The alert's theme variant.", "values": [ { "name": "primary" }, { "name": "success" }, { "name": "neutral" }, { "name": "warning" }, { "name": "danger" } ] }, { "name": "duration", "description": "The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with\nthe alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning\nthe alert will not close on its own.", "values": [] } ], "references": [ { "name": "Documentation", "url": "https://shoelace.style/components/alert" } ] }, { "name": "sl-avatar", "description": "Avatars are used to represent a person or object.\n---\n\n\n### **Slots:**\n - **icon** - The default icon to use when no image or initials are present. Works best with ``.\n\n### **CSS Properties:**\n - **--size** - The size of the avatar. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the avatar's icon.\n- **initials** - The container that wraps the avatar's initials.\n- **image** - The avatar image. Only shown when the `image` attribute is set.", "attributes": [ { "name": "image", "description": "The image source to use for the avatar.", "values": [] }, { "name": "label", "description": "A label to use to describe the avatar to assistive devices.", "values": [] }, { "name": "initials", "description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).", "values": [] }, { "name": "loading", "description": "Indicates how the browser should load the image.", "values": [{ "name": "eager" }, { "name": "lazy" }] }, { "name": "shape", "description": "The shape of the avatar.", "values": [ { "name": "circle" }, { "name": "square" }, { "name": "rounded" } ] } ], "references": [ { "name": "Documentation", "url": "https://shoelace.style/components/avatar" } ] }, { "name": "sl-badge", "description": "Badges are used to draw attention and display statuses or counts.\n---\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.", "attributes": [ { "name": "variant", "description": "The badge's theme variant.", "values": [ { "name": "primary" }, { "name": "success" }, { "name": "neutral" }, { "name": "warning" }, { "name": "danger" } ] }, { "name": "pill", "description": "Draws a pill-style badge with rounded edges.", "values": [] }, { "name": "pulse", "description": "Makes the badge pulsate to draw attention.", "values": [] } ], "references": [ { "name": "Documentation", "url": "https://shoelace.style/components/badge" } ] }, { "name": "sl-animation", "description": "Animate elements declaratively with nearly 100 baked-in presets, or roll your own with custom keyframes. Powered by the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).\n---\n\n\n### **Events:**\n - **sl-cancel** - Emitted when the animation is canceled.\n- **sl-finish** - Emitted when the animation finishes.\n- **sl-start** - Emitted when the animation starts or restarts.\n\n### **Methods:**\n - **cancel()** - Clears all keyframe effects caused by this animation and aborts its playback.\n- **finish()** - Sets the playback time to the end of the animation corresponding to the current playback direction.\n\n### **Slots:**\n - _default_ - The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To animate multiple elements, either wrap them in a single container or use multiple `` elements.", "attributes": [ { "name": "name", "description": "The name of the built-in animation to use. For custom animations, use the `keyframes` prop.", "values": [] }, { "name": "play", "description": "Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when\nthe animation finishes or gets canceled.", "values": [] }, { "name": "delay", "description": "The number of milliseconds to delay the start of the animation.", "values": [] }, { "name": "direction", "description": "Determines the direction of playback as well as the behavior when reaching the end of an iteration.\n[Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction)", "values": [{ "name": "PlaybackDirection" }] }, { "name": "duration", "description": "The number of milliseconds each iteration of the animation takes to complete.", "values": [] }, { "name": "easing", "description": "The easing function to use for the animation. This can be a Shoelace easing function or a custom easing function\nsuch as `cubic-bezier(0, 1, .76, 1.14)`.", "values": [] }, { "name": "end-delay", "description": "The number of milliseconds to delay after the active period of an animation sequence.", "values": [] }, { "name": "fill", "description": "Sets how the animation applies styles to its target before and after its execution.", "values": [{ "name": "FillMode" }] }, { "name": "iterations", "description": "The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops.", "values": [] }, { "name": "iteration-start", "description": "The offset at which to start the animation, usually between 0 (start) and 1 (end).", "values": [] }, { "name": "playback-rate", "description": "Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this\nto `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This\nvalue can be changed without causing the animation to restart.", "values": [] } ], "references": [ { "name": "Documentation", "url": "https://shoelace.style/components/animation" } ] }, { "name": "sl-animated-image", "description": "A component for displaying animated GIFs and WEBPs that play and pause on interaction.\n---\n\n\n### **Events:**\n - **sl-load** - Emitted when the image loads successfully.\n- **sl-error** - Emitted when the image fails to load.\n\n### **Slots:**\n - **play-icon** - Optional play icon to use instead of the default. Works best with ``.\n- **pause-icon** - Optional pause icon to use instead of the default. Works best with ``.\n\n### **CSS Properties:**\n - **--control-box-size** - The size of the icon box. _(default: undefined)_\n- **--icon-size** - The size of the play/pause icons. _(default: undefined)_\n\n### **CSS Parts:**\n - **** - control-box - The container that surrounds the pause/play icons and provides their background.", "attributes": [ { "name": "src", "description": "The path to the image to load.", "values": [] }, { "name": "alt", "description": "A description of the image used by assistive devices.", "values": [] }, { "name": "play", "description": "Plays the animation. When this attribute is remove, the animation will pause.", "values": [] } ], "references": [ { "name": "Documentation", "url": "https://shoelace.style/components/animated-image" } ] }, { "name": "sl-breadcrumb", "description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n---\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with ``.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.", "attributes": [ { "name": "label", "description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.", "values": [] } ], "references": [ { "name": "Documentation", "url": "https://shoelace.style/components/breadcrumb" } ] }, { "name": "sl-breadcrumb-item", "description": "Breadcrumb Items are used inside [breadcrumbs](/components/breadcrumb) to represent different links.\n---\n\n\n### **Slots:**\n - _default_ - The breadcrumb item's label.\n- **prefix** - An optional prefix, usually an icon or icon button.\n- **suffix** - An optional suffix, usually an icon or icon button.\n- **separator** - The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on `` instead.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label** - The breadcrumb item's label.\n- **prefix** - The container that wraps the prefix.\n- **suffix** - The container that wraps the suffix.\n- **separator** - The container that wraps the separator.", "attributes": [ { "name": "href", "description": "Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\ninternally. When unset, a button will be rendered instead.", "values": [] }, { "name": "target", "description": "Tells the browser where to open the link. Only used when `href` is set.", "values": [ { "name": "_blank" }, { "name": "_parent" }, { "name": "_self" }, { "name": "_top" } ] }, { "name": "rel", "description": "The `rel` attribute to use on the link. Only used when `href` is set.", "values": [] } ], "references": [ { "name": "Documentation", "url": "https://shoelace.style/components/breadcrumb-item" } ] }, { "name": "sl-button", "description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **sl-blur** - Emitted when the button loses focus.\n- **sl-focus** - Emitted when the button gains focus.\n- **sl-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `` element.\n- **spinner** - The spinner that shows when the button is in the loading state.", "attributes": [ { "name": "title", "values": [] }, { "name": "variant", "description": "The button's theme variant.", "values": [ { "name": "default" }, { "name": "primary" }, { "name": "success" }, { "name": "neutral" }, { "name": "warning" }, { "name": "danger" }, { "name": "text" } ] }, { "name": "size", "description": "The button's size.", "values": [ { "name": "small" }, { "name": "medium" }, { "name": "large" } ] }, { "name": "caret", "description": "Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior.", "values": [] }, { "name": "disabled", "description": "Disables the button.", "values": [] }, { "name": "loading", "description": "Draws the button in a loading state.", "values": [] }, { "name": "outline", "description": "Draws an outlined button.", "values": [] }, { "name": "pill", "description": "Draws a pill-style button with rounded edges.", "values": [] }, { "name": "circle", "description": "Draws a circular icon button. When this attribute is present, the button expects a single `` in the\ndefault slot.", "values": [] }, { "name": "type", "description": "The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`