pub struct SeparatorProps {
pub orientation: SeparatorOrientation,
pub attrs: Attributes,
}Expand description
A thin rule between groups of content.
Uses an <hr> element. Its length comes from its container, so a vertical separator
needs a container with a height. Pass aria-hidden="true" for a purely decorative
rule. attrs are forwarded to the <hr>, with extra classes added to its classes.
ⓘ
view! {
<div class="flex flex-col gap-4">
<p>"Everyone with access to this workspace."</p>
separator()
<div class="flex h-5 items-center gap-3">
<a href="/docs">"Docs"</a>
separator(orientation: SeparatorOrientation::Vertical)
<a href="/blog">"Blog"</a>
</div>
</div>
}Fields§
§orientation: SeparatorOrientationThe direction the rule runs in.
attrs: AttributesExtra attributes for the <hr> element.
Implementations§
Source§impl SeparatorProps
impl SeparatorProps
Sourcepub fn builder() -> SeparatorPropsBuilder
pub fn builder() -> SeparatorPropsBuilder
Returns a SeparatorPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeparatorProps
impl RefUnwindSafe for SeparatorProps
impl Send for SeparatorProps
impl Sync for SeparatorProps
impl Unpin for SeparatorProps
impl UnsafeUnpin for SeparatorProps
impl UnwindSafe for SeparatorProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more