File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 no-default-features : true
2424 features : fullstack
2525 debug-symbols : false
26- dx-cli-version : 0.7.6
26+ dx-cli-version : 0.7.7
Original file line number Diff line number Diff line change 5454 features : fullstack
5555 debug-symbols : false
5656 base-path : ${{ github.event.repository.name }}
57- dx-cli-version : 0.7.6
57+ dx-cli-version : 0.7.7
Original file line number Diff line number Diff line change 4545 features : fullstack
4646 debug-symbols : false
4747 base-path : ${{ github.event.repository.name }}
48- dx-cli-version : 0.7.6
48+ dx-cli-version : 0.7.7
4949 toolchain : nightly
Original file line number Diff line number Diff line change 2121 no-default-features : true
2222 features : fullstack
2323 debug-symbols : false
24- dx-cli-version : 0.7.6
24+ dx-cli-version : 0.7.7
Original file line number Diff line number Diff line change @@ -427,12 +427,19 @@ fn push_code_segment<'a>(
427427 segments. push ( CodeSegment { text, tag } ) ;
428428}
429429
430+ /// Props for [`CodeSpan`].
430431#[ derive( Props , Clone , PartialEq ) ]
431432pub struct CodeSpanProps {
433+ /// The literal text rendered inside the span.
432434 pub text : String ,
435+ /// Highlight tag class suffix used to derive the span's class name.
433436 pub tag : & ' static str ,
434437}
435438
439+ /// Render a single highlighted token as `<span class="a-{tag}">{text}</span>`.
440+ ///
441+ /// Used internally by [`Code`] but exposed so callers can build their own
442+ /// layouts on top of [`HighlightSpan`].
436443#[ component]
437444pub fn CodeSpan ( props : CodeSpanProps ) -> Element {
438445 let class = format ! ( "a-{}" , props. tag) ;
You can’t perform that action at this time.
0 commit comments