Skip to main content

basecoat_core/classes/
separator.rs

1use crate::props::separator::SeparatorProps;
2
3/// Returns the canonical CSS class string for a separator.
4///
5/// Upstream basecoat uses `role="separator"` on `<hr>` — no CSS class needed.
6/// This function always returns an empty string; the `role` attribute is
7/// handled by the component renderer, not the class function.
8pub fn separator(_p: &SeparatorProps) -> String {
9    String::new()
10}
11
12#[cfg(test)]
13mod tests {
14    use super::*;
15    use crate::props::separator::SeparatorProps;
16
17    #[test]
18    fn no_class() {
19        assert_eq!(separator(&SeparatorProps::default()), "");
20    }
21}