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_classes
optional properties to theHero
component. These extra classes will be added to the stanard classes assigned to each of the corresponding hero component sections. - Added
navburger_classes
prop to theNavbar
component. These extra classes will be added to the standard classes for thenavbar-burger
element. - Added
help_has_error
prop to theField
component. Thisbool
prop will add theis-danger
class to the field's help text whentrue
. - Added
horizontal
prop to theField
component. This replaces theFieldHorizontal
component. - Added
disabled
prop to theSelect
&MultiSelect
components. - All components have been updated to accept
yew::Classes
instead ofString
for theirclasses
props.
removed
- The
FieldHorizontal
component has been removed in favor of thehorizontal
prop of theField
component.
v0.1.6 | Updates to Navbar
changed
- Updates to the
Navbar
component:navbrand
,navstart
,navend
are now all optional.- a new
navburger: bool
property has been added. This bool controls whether or not anavbar-burger
will 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
disabled
attribute instead of the Bulmais-disabled
CSS 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
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. - The default tag type for NavbarItems is now
div
. - Added the
href
,rel
&target
props to theNavbarItem
component. They will only be used when theNavbarItemTag::A
is being used for the component. - Added the
rel
&target
props to theButtonAnchor
component. - 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
Children
props from Hero & made header & footer optional.
added
- Added the
centered
,multiline
&vcentered
props to theColumns
component, 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.