bestguy / sveltestrap

Bootstrap 4 & 5 components for Svelte
https://sveltestrap.js.org
MIT License
1.31k stars 183 forks source link

NavbarText component #341

Open gforcedev opened 3 years ago

gforcedev commented 3 years ago

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.

bestguy commented 3 years ago

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

gforcedev commented 3 years ago

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.