Giter Site home page Giter Site logo

more props to TopNavigationProps.Logo with the ability to control the size and a svg source for a custom identity logo icon about components HOT 2 OPEN

dennis8844 avatar dennis8844 commented on June 4, 2024
more props to TopNavigationProps.Logo with the ability to control the size and a svg source for a custom identity logo icon

from components.

Comments (2)

rubencarvalho avatar rubencarvalho commented on June 4, 2024

Hello Dennis,

You can use the SVG file directly on the top navigation slot, as per our playground example. This should provide you with more control over its size and offers an href property to add a link to it.

Let me know if that helps.

Thank you!

from components.

dennis8844 avatar dennis8844 commented on June 4, 2024

That could work if we deployed our assets and then grabbed them from a s3 bucket or something. Importing them from a relative path did not work, because our package gets bundled and used by others. So the resolution that worked for me was to base64 encode the icon, save that string as a variable and use that in the src.

from components.

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.