Attributes can be installed in two ways: via CDN for quick setup in Webflow, or via npm for JavaScript projects.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/finsweet/attributes/llms.txt
Use this file to discover all available pages before exploring further.
CDN installation (recommended for Webflow)
The fastest way to get started is to add the CDN script to your Webflow project.Choose your loading strategy
Attributes supports two loading strategies:Option 1: Load specific attributes (recommended)Only load the attributes you need for better performance:Add
fs-{attribute-name} as attributes to load specific solutions.Option 2: Auto-load all used attributesAutomatically detect and load attributes used on your page:The
fs-attributes-auto option scans your page for any fs-* attributes and loads the corresponding modules. While convenient, it may load unused attributes if you have attributes in hidden elements.Add the script to Webflow
- In your Webflow project, go to Project Settings > Custom Code
- Paste your chosen script into the Footer Code section
- Click Save Changes
- Publish your site
npm installation (for developers)
For JavaScript projects or custom Webflow builds, you can install Attributes via npm.Import and use
Import the main library in your JavaScript:This will automatically initialize all attributes found on the page.
When using npm, Attributes automatically detects all
fs-* attributes in your HTML and loads the corresponding modules.Version pinning
Instead of using@2, specify the exact version:
Verifying installation
To verify Attributes is loaded correctly:- Open your browser’s developer console (F12)
- Type:
window.FinsweetAttributes - You should see an object with version, modules, and other properties
Next steps
Quickstart tutorial
Ready to build your first feature? Follow our quickstart guide to create a copy-to-clipboard button in 5 minutes.