Comments (6)
I just modified it for the svelte components.
You can see an example here.
Please update npm:
npm i -D flowbite-svelte@latest
Also please change your key name from title to name. After adding TS, I changed some of key names. Sorry.
interface InteractiveTabType {
name: string;
id: number;
content: string | typeof SvelteComponent;
}
As you can see the content can hold either string or Svelte component.
from flowbite-svelte.
In the future version, the Interactive tab component change the structure. It will use slot
so you can add another component or HTML etc. So it will be a BREAKING CHANGE.
The reason behind this change is to make the component more flexible. By using the slot
, uses can add anything in the slot.
from flowbite-svelte.
I leave the InteractiveTabs
component as it is. And I just added InteractiveTabHead
and TabContent
components. It makes easy to add anything in the tab.
Demo
from flowbite-svelte.
Can I ask what kind of svelte component you are planning use? If you can give me an example, it will be helpful.
from flowbite-svelte.
I'm nesting this inside a modal, as a sort of per row menu.
i.e.
Table
->Rows
-->(column) Edit Button Modal
--->XL Modal
---->Interactive Tab as a tabbed menu of sorts
----->Individual Svelte Component Forms that hold menu items
from flowbite-svelte.
Thank you for the quick update, will update versions now. Haven't had any issues with the typings (new type props), its an easy update, thanks again for the library.
from flowbite-svelte.
Related Issues (20)
- Unable to use Flowbite-svelte components in Astro app - getContext returns undefined HOT 1
- Dark mode colors are hard-coded in components HOT 1
- The second example of the Tooltip doc page doesn't work
- Nested url active in sidebar
- Button page on docs shows internal error HOT 3
- Alternative button styles and primary button hover doesn't exist
- Homepage container widths
- Website Error- Error on Tooltips Page HOT 3
- DatePicker enchancements
- Radio component checked prop doesn't change the checked element. HOT 2
- Pagination add slots for Beginning and End
- Uneffective `open` variable binding in Toast HOT 1
- Cannot use ImagePlaceholder without text skeleton
- Input: mobile font size should be 16px to avoid page zooming
- Select: "sm" font size does not match input "sm" font size HOT 2
- Select: "sm" font size does not match input "sm" font size HOT 3
- Checkbox "class" property applies to label, not checkbox HOT 1
- Change colors/theme runtime HOT 1
- Modal needs focus-visible:outline-none HOT 4
- Support actions on Input HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowbite-svelte.