Bootstrap support for Link

This issue has been tracked since 2022-04-17.

Add support for custom css classes for the <a /> tag in the Link component

andirady wrote this answer on 2022-05-20

You could use the getProps for this. E.g.:

<script>
  import { Link } from "svelte-routing";

  function getProps() {
    return { class: 'a b c' }
  }
</script>

<Link to="some_page" {getProps}>Some Page</Link>

DISCLAIMER code not tested.

dev-itzarun wrote this answer on 2022-08-29

@andirady

<Link to="some_page" class="btn btn-primary" </Link>

Link supports classes so you can pass required classes like above.

Remember you have included bootstarp in your svelte component

More Details About Repo
Owner Name EmilTholin
Repo Name svelte-routing
Full Name EmilTholin/svelte-routing
Language JavaScript
Created Date 2017-11-28
Updated Date 2022-12-03
Star Count 1711
Watcher Count 21
Fork Count 151
Issue Count 59

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date