A Yew component library based on the Bulma CSS framework.
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
.
0.18.x
.head_classes
, body_classes
& foot_classes
optional properties to the Hero
component. These extra classes will be added to the stanard classes assigned to each of the corresponding hero component sections.navburger_classes
prop to the Navbar
component. These extra classes will be added to the standard classes for the navbar-burger
element.help_has_error
prop to the Field
component. This bool
prop will add the is-danger
class to the field's help text when true
.horizontal
prop to the Field
component. This replaces the FieldHorizontal
component.disabled
prop to the Select
& MultiSelect
components.yew::Classes
instead of String
for their classes
props.FieldHorizontal
component has been removed in favor of the horizontal
prop of the Field
component.Navbar
component:
navbrand
, navstart
, navend
are now all optional.navburger: bool
property has been added. This bool controls whether or not a navbar-burger
will be rendered inside of the navbar when being rendered within smaller viewports. This value defaults to true
, maintaining backwards compatibility.padded
to Navbar. Setting this to true will wrap the contents of the navbar in a container to add padding to the contents under some circumstances.div
.href
, rel
& target
props to the NavbarItem
component. They will only be used when the NavbarItemTag::A
is being used for the component.rel
& target
props to the ButtonAnchor
component.is-fullheight-with-navbar
. This one is present in the Bulma docs, but is slightly hidden.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:
<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.