Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support target and rel in ListGroupItem #1111

Closed
aldo-roman opened this issue Oct 7, 2023 · 0 comments · Fixed by #1143
Closed

Support target and rel in ListGroupItem #1111

aldo-roman opened this issue Oct 7, 2023 · 0 comments · Fixed by #1143
Labels
enhancement New feature or request

Comments

@aldo-roman
Copy link

Summary

The <ListGroupItem> component accepts href attribute, but it does not allow opening links in a new tab.

Basic example

<script>
  import { Listgroup } from 'flowbite-svelte';
  let links = [
    {
      name: 'Accordions',
      href: 'https://mywebsite.com',
      target: '_blank',                // Added
      rel: 'noreferer noopener',       // Added
      current: true
    },
  ];
</script>

<Listgroup active items={links} let:item>
  {item.name}
</Listgroup>

Motivation

I need to open links from a ListGroup in a new tab.

@aldo-roman aldo-roman added the enhancement New feature or request label Oct 7, 2023
@jjagielka jjagielka mentioned this issue Nov 3, 2023
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant