singlestage_macro 0.0.0

A UI component library for Leptos based on Basecoat UI and shadcn/ui
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use proc_macro::TokenStream;

mod svg;

/// The main svg procedural macro function.
/// It accepts optional named arguments
/// and generates an SVG string.
#[proc_macro]
pub fn svg(input: TokenStream) -> TokenStream {
    svg::svg(input)
}

#[proc_macro]
pub fn icon(input: TokenStream) -> TokenStream {
    svg::svg(input)
}