sveltestrap icon indicating copy to clipboard operation
sveltestrap copied to clipboard

NavbarText component

Open gforcedev opened this issue 3 years ago • 2 comments

I would like to put some text in my navbar. Currently then there doesn't seem to be a mirror for bootstrap's .navbar-text, which means I have to use disabled NavLinks.

Apologies if this doesn't exist, I couldn't find it in the docs and I'd be happy to be pointed in the right direction.

gforcedev avatar Jul 18 '21 17:07 gforcedev

Hi @gforcedev ,

Thanks, we missed that. I'll look at adding. Though FYI you can also add the span directly to the Navbar:

<Navbar color="light" light container="fluid">
  <span class="navbar-text">
    Navbar text with an inline element
  </span>
</Navbar>

https://svelte.dev/repl/4fff0357abd6477686618f80a7f4f54c?version=3.38.3

bestguy avatar Jul 19 '21 00:07 bestguy

Ahh fantastic thanks so much! Didn't realise I could just add the spans with their bootstrap classes directly into the html but of course that does make sense since I included the css file.

gforcedev avatar Jul 20 '21 20:07 gforcedev