Skip to main content

orbital_datatable/preview/
mod.rs

1//! Preview registration for DataTable documentation pages and fixtures.
2
3use icondata_core::Icon;
4use leptos::prelude::*;
5
6#[cfg(all(feature = "preview", not(target_arch = "wasm32")))]
7inventory::collect!(PreviewRegistration);
8
9/// Static metadata for a generated primitive preview page.
10pub struct PreviewRegistration {
11    pub slug: &'static str,
12    pub label: &'static str,
13    pub section: &'static str,
14    pub section_priority: u16,
15    pub category: &'static str,
16    pub category_priority: u16,
17    pub category_default_collapsed: bool,
18    pub group: &'static str,
19    pub group_priority: u16,
20    pub nav_item: bool,
21    pub icon: Icon,
22    pub render: fn() -> AnyView,
23}
24
25pub mod fixtures;
26pub mod static_registrations;
27
28pub use orbital_core_components::preview::{ComponentPreviewCard, OrbitalComponentView};