Coder Social home page Coder Social logo

Comments (7)

rluders avatar rluders commented on August 29, 2024 1

OK, so... the request is to add the support to Timeline.Point to support iconRender function, so you can use Avatar or any other component as inner content of the Timeline.Point.

from flowbite-react.

AhmedSwisi avatar AhmedSwisi commented on August 29, 2024 1

Hello, Is anyone working on this? Id like to give this a shot

from flowbite-react.

rluders avatar rluders commented on August 29, 2024

@codercody is it supported by standard flowbite library? Can you give us any example from the official documentation?

from flowbite-react.

codercody avatar codercody commented on August 29, 2024

In the activity log section of the timeline component on the flowbite website there's an example of what I had in mind - the avatar in the spot of the Timeline.Point

from flowbite-react.

SutuSebastian avatar SutuSebastian commented on August 29, 2024

Hello, Is anyone working on this? Id like to give this a shot

Sure, go ahead

from flowbite-react.

AhmedSwisi avatar AhmedSwisi commented on August 29, 2024

Hello, So sorry to hassle you with me but I got some free time to give this a shot today and I keep running into a lot of issues. The main one seems to be a client/server components issue where it says, for example 'Accordion' imports useRef which means it has to be a client component. This is an easy fix but I think I am doing something wrong. This is in .mjs files when i try to run the nextJS App. I followed the steps in the documentation for contributing so please let me know if theres anything im missing misunderstanding on how to get everything to run properly locally. Thank you in advance.
Edit: To be clear I did get it working by just using use client at root of the tree so what Im really asking is is this right and then I revert it back before pushing or am I doing something off? any pointers are appreciated as well. Thank you again

from flowbite-react.

SutuSebastian avatar SutuSebastian commented on August 29, 2024

Hello, So sorry to hassle you with me but I got some free time to give this a shot today and I keep running into a lot of issues. The main one seems to be a client/server components issue where it says, for example 'Accordion' imports useRef which means it has to be a client component. This is an easy fix but I think I am doing something wrong. This is in .mjs files when i try to run the nextJS App. I followed the steps in the documentation for contributing so please let me know if theres anything im missing misunderstanding on how to get everything to run properly locally. Thank you in advance. Edit: To be clear I did get it working by just using use client at root of the tree so what Im really asking is is this right and then I revert it back before pushing or am I doing something off? any pointers are appreciated as well. Thank you again

Best way to work on the UI library (flowbite-react) is by starting the storybook app (apps/storybook) since it watches the files in the packages/ui.

All the management should be done from the root package.json which contains multiple scripts, but to start storybook u must run bun dev:storybook, a new browser tab will be opened after with the stories.

Note: the docs (apps/web) consume the UI library (packages/ui) just like any other npm package, to ensure correct functionality both in client and server env, thats why when u want to go to the source of a component, it sends u to either the .d.ts file or the .mjs file, since thats the build output of flowbite-react (UI package).

I'll find some time to enrich the docs contributing page in the close future for easier onboarding and better DX.

from flowbite-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.