Giter Club home page Giter Club logo

Comments (3)

asifahmedfw avatar asifahmedfw commented on May 23, 2024

@usman2023 Can you use the following script to include crayons? We recommend using the following.

<script type="module" src="https://unpkg.com/@freshworks/[email protected]/dist/crayons/crayons.esm.js"></script>
<script nomodule src="https://unpkg.com/@freshworks/[email protected]/dist/crayons/crayons.js"></script>

The recommended way is to use version numbers.

<script type="module" src="https://unpkg.com/@freshworks/crayons@<VERSION_NUMBER>/dist/crayons/crayons.esm.js"></script>
<script nomodule src="https://unpkg.com/@freshworks/crayons@<VERSION_NUMBER>/dist/crayons/crayons.js"></script>

Where <VERSION_NUMBER> is the version you want to point to.
If you use VERSION_NUMBER = 2, it will point to the latest version in major version 2.
If you use VERSION_NUMBER = 1, it will point to the latest version in major version 1.
If you use VERSION_NUMBER = 2.3, it will point to the latest version in minor version 2.3. -> e.g 2.3.1
If you use VERSION_NUMBER = 2.3.1, it will point to the exact version 2.3.1.

Hope this helps! 👍

Closing this for now. Please re-open this if the issue persists.

from crayons.

owais-techlogix avatar owais-techlogix commented on May 23, 2024

Hi,

I was using these scripts to include crayons

<script type="module" src="https://static-dev.freshcloud.io/freshworks-ui-kit/freshworks-ui-kit.esm.js"></script>
<script nomodule src="https://static-dev.freshcloud.io/freshworks-ui-kit/freshworks-ui-kit.js"></script>

I replaced it to these scripts

<script type="module" src="https://unpkg.com/@freshworks/[email protected]/dist/crayons/crayons.esm.js"></script>
<script nomodule src="https://unpkg.com/@freshworks/[email protected]/dist/crayons/crayons.js"></script>

My above issue resolves but the new issues occur.
e.g. The toggle button is not working properly. Is that bug? or Is there any documentation that I can use.

Thanks.

from crayons.

asifahmedfw avatar asifahmedfw commented on May 23, 2024

@owais-techlogix
All documents are published at crayons.freshworks.com
Can you share the exact issue you are facing with the toggle button? Screenshots/Gifs would be of great help. Also, do you see any errors in the console of your browser?

from crayons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.