Skip to content

Add bootstrap example for styling solutions #614

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bunnyBites
Copy link

@bunnyBites bunnyBites commented Oct 31, 2023

  1. This example includes a basic login page styled using Bootstrap 5.
  2. This example also covers code reusability using props (struct).

example-yew-bootstrap

@ctron
Copy link
Collaborator

ctron commented Dec 13, 2023

I think this is a valuable tutorial. I am just not sure it needs to go into the main trunk repository. Unless I missed something that it does with trunk differently.

It looks more like a Yew + Bootstrap quickstart. Maybe a better home for this is yew?

@bunnyBites
Copy link
Author

I think this is a valuable tutorial. I am just not sure it needs to go into the main trunk repository. Unless I missed something that it does with trunk differently.

It looks more like a Yew + Bootstrap quickstart. Maybe a better home for this is yew?

Yeah, I wonder why I did it in this crate. I think the documentation part of that file is present in this crate as that of the tailwind example. So I have included here😅.
Please correct me if I'm wrong.

@ctron
Copy link
Collaborator

ctron commented Jan 8, 2024

Well, for tailwind there is some support required from trunk. But bootstrap if pretty straight forward "vanilla".

@duke-m
Copy link
Contributor

duke-m commented May 12, 2025

hi, thanks, I mean it doesn't hurt to show how to use trunk together with whatever you need. But I recommend not putting it into the examples because:

  • it can be mentioned in the docs / guide how to use other frameworks than Tailwind
  • it wouldn't build as wasm-bindgen won't work with older versions and there is no data-trunk rel="rust" (both easy fixable)
  • doing a GET with a plain password is considered bad practice (fixable)
  • yew would be also good place

So what about having a guide for bootstrap in the guide instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants