Releases: thedodd/ybc
v0.4.0
v0.4.0-beta.0
The only real change here is that YBC has been updated to Yew 0.20, which included updating only a few components.
changed
- Updated to yew 0.20
- Updated to yew-agent 0.2
- Updated to yew-router 0.17
v0.3.0-beta.0 | Yew 0.19
The only real change here is that YBC has been updated to Yew 0.19, which included updating basically all components. Huge shoutout to @Follpvosten for all of her work on making this happen.
Once this release has stabilized a bit, we will cut an official 0.3.0, and will then follow-up with a 0.4.0 for Yew 0.20.
changed
- Updated to Yew 0.19.
v0.2.1 | Fix docs build
Fix docs due to doc(include) issues See: rust-lang/rust#44732 rust-lang/rust#82539
v0.2.0 | Yew 0.18, yew::Classes & other updates
0.2.0
added
- Added support for yew
0.18.x. - Added
head_classes,body_classes&foot_classesoptional properties to theHerocomponent. These extra classes will be added to the stanard classes assigned to each of the corresponding hero component sections. - Added
navburger_classesprop to theNavbarcomponent. These extra classes will be added to the standard classes for thenavbar-burgerelement. - Added
help_has_errorprop to theFieldcomponent. Thisboolprop will add theis-dangerclass to the field's help text whentrue. - Added
horizontalprop to theFieldcomponent. This replaces theFieldHorizontalcomponent. - Added
disabledprop to theSelect&MultiSelectcomponents. - All components have been updated to accept
yew::Classesinstead ofStringfor theirclassesprops.
removed
- The
FieldHorizontalcomponent has been removed in favor of thehorizontalprop of theFieldcomponent.
v0.1.6 | Updates to Navbar
changed
- Updates to the
Navbarcomponent:navbrand,navstart,navendare now all optional.- a new
navburger: boolproperty has been added. This bool controls whether or not anavbar-burgerwill be rendered inside of the navbar when being rendered within smaller viewports. This value defaults totrue, maintaining backwards compatibility.
v0.1.5 | Use HTML Disabled Attr
fixed
- Fixed a few of the button & button-like components to use the HTML
disabledattribute instead of the Bulmais-disabledCSS class. The latter has been deprecated for some time. - Update docs in the README to point to the latest Bulma 0.9.1 release.
Add a few missing props
added
- Add prop
paddedto Navbar. Setting this to true will wrap the contents of the navbar in a container to add padding to the contents under some circumstances. - The default tag type for NavbarItems is now
div. - Added the
href,rel&targetprops to theNavbarItemcomponent. They will only be used when theNavbarItemTag::Ais being used for the component. - Added the
rel&targetprops to theButtonAnchorcomponent. - Adds an additional size for heros:
is-fullheight-with-navbar. This one is present in the Bulma docs, but is slightly hidden.
Bug Fixes
fixed
- Removed
Childrenprops from Hero & made header & footer optional.
added
- Added the
centered,multiline&vcenteredprops to theColumnscomponent, corresponding to the standard Bulma classes bearing the same name prefixed withis-.
YBC | Initial Release
A Yew component library based on the Bulma CSS framework.
YBC encapsulates all of the structure, style and functionality of the Bulma CSS framework as a set of Yew components. YBC also ships with support for the Yew Router, adding Bulma-styled components which wrap the Yew Router components for clean integration.
As a guiding principal, YBC does not attempt to encapsulate every single Bulma style as a Rust type, let alone the many valid style combinations. That would be far too complex, and probably limiting to the user in many ways. Instead, YBC handles strucutre, required classes, functionality, sane defaults and every component can be customized with any additional classes for an exact look and feel.
To get started with YBC, have a look at the Getting Started guide in the README. A few pertinent highlights:
- YBC works out of the box with Bulma CSS. Add
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"/>to your HTML, and then you're ready to start using YBC. - YBC also supports full customization using Bulma's recommended customization pattern. Details here. TL;DR, use Trunk for building & bundling your app. It will handle compiling your scss/sass, which is what you will use for customizing Bulma.