pub struct separator;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>
}Trait Implementations§
Source§impl Component for separator
impl Component for separator
Source§type Props<'__props> = SeparatorProps
type Props<'__props> = SeparatorProps
The component’s properties. The lifetime covers data borrowed from
the caller.
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for separator
impl RefUnwindSafe for separator
impl Send for separator
impl Sync for separator
impl Unpin for separator
impl UnsafeUnpin for separator
impl UnwindSafe for separator
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