List group
Examples
<script>
import { List } from "flowbite-svelte";
let lists = [
{
name: "Home",
href: "/",
},
{
name: "Alerts",
href: "/alert",
},
{
name: "Cards",
href: "/cards",
},
{
name: "List Group",
href: "/list-group/list",
},
{
name: "Modals",
href: "/modals",
},
{
name: "Tabs",
href: "/tabs",
},
];
</script>
<script>
import { List } from "flowbite-svelte";
import {
Adjustments,
UserCircle,
InboxIn,
CloudDownload,
} from "svelte-heros";
let lists2 = [
{
name: "Profile",
icon: UserCircle,
iconSize: 18,
iconClass: "text-blue-500 dark:text-pink-700",
href: "/",
},
{
name: "Settings",
icon: Adjustments,
iconSize: 18,
iconClass: "text-blue-500 dark:text-purple-500",
href: "/",
},
{
name: "Messages",
icon: InboxIn,
iconSize: 18,
iconClass: "text-blue-500 dark:text-green-500",
href: "/",
},
{
name: "Download",
icon: CloudDownload,
iconSize: 18,
iconClass: "text-blue-500 dark:text-red-500",
href: "/",
},
];
</script>
Props
The component has the following props, type, and default values. See types page for type information.
Name | Type | Default |
---|---|---|
lists | ButtonGroupType[] |