dioxus_tw_components/components/atoms/separator/
style.rs

1use super::props::*;
2use crate::attributes::*;
3use dioxus::prelude::*;
4
5impl Class for SeparatorProps {
6    fn base(&self) -> &'static str {
7        "bg-border shrink-0"
8    }
9
10    fn orientation(&self) -> Option<&'static str> {
11        Some(match *self.orientation.read() {
12            Orientation::Horizontal => "w-full h-[1px]",
13            Orientation::Vertical => "h-full w-[1px]",
14        })
15    }
16}