|
64 | 64 |
|
65 | 65 | <!-- |
66 | 66 | @component |
67 | | - ## Features |
68 | 67 | [Go to Bottom Navigation](https://flowbite-svelte.com/docs/components/bottom-navigation) |
69 | | - - Default bottom navigation |
70 | | - - Menu items with border |
71 | | - - Application bar example |
72 | | - - Example with pagination |
73 | | - - Button group bottom bar |
74 | | - - Card with bottom bar |
75 | 68 | ## Props |
76 | 69 | @prop position: 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky' = 'fixed'; |
77 | 70 | @prop navType:| 'default' | 'border' | 'application' | 'pagination' | 'group' | 'card' | 'meeting' | 'video' | 'custom' = 'default'; |
78 | 71 | @prop outerClass: string = 'w-full z-50 border-gray-200 dark:bg-gray-700 dark:border-gray-600'; |
79 | 72 | @prop innerClass: string = 'grid h-full max-w-lg mx-auto'; |
80 | 73 | @prop outerCustom: string = ''; |
81 | 74 | @prop innerCustom: string = ''; |
82 | | - ## Example |
83 | | - ``` |
84 | | - <script> |
85 | | - import { BottomNav, BottomNavItem } from "flowbite-svelte" |
86 | | - </script> |
87 | | -
|
88 | | - <BottomNav position="absolute" innerDiv="grid-cols-4"> |
89 | | - <BottomNavItem btnName="Home"> |
90 | | - <svg class="w-6 h-6 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-primary-600 dark:group-hover:text-primary-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> |
91 | | - <path d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"></path> |
92 | | - </svg> |
93 | | - </BottomNavItem> |
94 | | - <BottomNavItem btnName="Wallet"> |
95 | | - <svg class="w-6 h-6 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-primary-600 dark:group-hover:text-primary-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> |
96 | | - <path d="M4 4a2 2 0 00-2 2v1h16V6a2 2 0 00-2-2H4z"></path> |
97 | | - <path clip-rule="evenodd" fill-rule="evenodd" d="M18 9H2v5a2 2 0 002 2h12a2 2 0 002-2V9zM4 13a1 1 0 011-1h1a1 1 0 110 2H5a1 1 0 01-1-1zm5-1a1 1 0 100 2h1a1 1 0 100-2H9z"></path> |
98 | | - </svg> |
99 | | - </BottomNavItem> |
100 | | - <BottomNavItem btnName="Settings"> |
101 | | - <svg class="w-6 h-6 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-primary-600 dark:group-hover:text-primary-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> |
102 | | - <path d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"></path> |
103 | | - </svg> |
104 | | - </BottomNavItem> |
105 | | - <BottomNavItem btnName="Profile"> |
106 | | - <svg class="w-6 h-6 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-primary-600 dark:group-hover:text-primary-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> |
107 | | - <path clip-rule="evenodd" fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z"></path> |
108 | | - </svg> |
109 | | - </BottomNavItem> |
110 | | - </BottomNav> |
111 | | - ``` |
| 75 | + |
112 | 76 | --> |
0 commit comments