1.0.8 • Published 5 months ago

@sociate/style-discovery v1.0.8

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Sociate Style Discovery

A style discovery component that can be easily integrated into any website.

Installation

Add the component to your website by including the script:

<script src="https://unpkg.com/@sociate/style-discovery@1.0.1/dist/index.js"></script>

Basic Usage

  1. First, define an element that will serve as a trigger button:
<button id="open-sociate">Open Sociate Style</button>
  1. Then, add the Sociate Style component to your HTML:
<sociate-style
  token="your-token-here"
  trigger-id="open-sociate"
  is-static-page="false"
></sociate-style>

Attributes

  • token (required): Your Sociate authentication token
  • trigger-id (required): ID of the HTML element that will trigger the component
  • is-static-page (optional): Indicates if the page is static (default: false)

Complete Example

<!DOCTYPE html>
<html>
<head>
  <title>Sociate Style Example</title>
</head>
<body>
  <button id="open-sociate">Discover Style</button>
  
  <sociate-style
    token="your-token-here"
    trigger-id="open-sociate"
  ></sociate-style>

  <script src="https://unpkg.com/@sociate/style-discovery@1/dist/index.js"></script>
</body>
</html>
1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.1.0-beta.9

7 months ago

0.1.0-beta.8

7 months ago

0.1.0-beta.7

7 months ago

0.1.0-beta.6

7 months ago

0.1.0-beta.5

7 months ago

0.1.0-beta.4

7 months ago

0.1.0-beta.3

7 months ago

0.1.0-beta.2

7 months ago

0.1.0-beta.1

7 months ago