UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

25 lines (24 loc) 1.3 kB
/** * --------------------------------------------------------------------- * 🔒 AUTOGENERATED BY VENDORISM * Removing this comment will prevent it from being managed by it. * --------------------------------------------------------------------- */ /** Sets the library's base path to the specified directory. */ export declare function setBasePath(path: string): void; /** * Gets the library's base path. * * The base path is used to load assets such as icons and images, so it needs to be set for components to work properly. * By default, this script will look for a script ending in synergy.js or synergy-autoloader.js and set the base path * to the directory that contains that file. To override this behavior, you can add the data-synergy attribute to any * script on the page (it probably makes the most sense to attach it to the Synergy script, but it could also be on a * bundle). The value can be a local folder or it can point to a CORS-enabled endpoint such as a CDN. * * <script src="bundle.js" data-synergy="/custom/base/path"></script> * * Alternatively, you can set the base path manually using the exported setBasePath() function. * * @param subpath - An optional path to append to the base path. */ export declare function getBasePath(subpath?: string): string;