crates/web/src/components/ was a byte-for-byte copy of the DioxusLabs/components "preview" registry (a shadcn-style copy-into- your-project source, not something published as a dependency). Move it wholesale into a new feedsignal-dioxus-components crate so it reads as vendored code we depend on rather than application source, and future app-specific styling should layer on via the class/attributes props each component already accepts instead of editing the vendored files. No component logic changed — this is a pure move plus import-path updates in the four app files that consumed it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
23 lines
641 B
Rust
23 lines
641 B
Rust
use dioxus::prelude::*;
|
|
use dioxus_primitives::separator::{self, SeparatorProps};
|
|
use dioxus_primitives::{dioxus_attributes::attributes, merge_attributes};
|
|
|
|
#[css_module("/src/components/separator/style.css")]
|
|
struct Styles;
|
|
|
|
#[component]
|
|
pub fn Separator(props: SeparatorProps) -> Element {
|
|
let base = attributes!(div {
|
|
class: Styles::dx_separator,
|
|
});
|
|
let merged = merge_attributes(vec![base, props.attributes]);
|
|
|
|
rsx! {
|
|
separator::Separator {
|
|
horizontal: props.horizontal,
|
|
decorative: props.decorative,
|
|
attributes: merged,
|
|
{props.children}
|
|
}
|
|
}
|
|
}
|