BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Code Block

Syntax-highlighted code display with copy button and line numbers.

Paquete
@solidiom/code-block
Versión
0.6.0
Estado
experimental

Generado a partir del código fuente público del paquete.

API

Codecomponente

                        Code(props: CodeProps): Element
                      

Propiedades

class?
string
language?
string — Programming language identifier.
style?
string | CSSProperties

hijos: Element

Ver código fuente

CodePropsinterfaz

Propiedades

class?
string
language?
string — Programming language identifier.
style?
string | CSSProperties

hijos: Element

Ver código fuente

CopyButtoncomponente

                        CopyButton(props: CopyButtonProps): Element
                      

Propiedades

class?
string
code
string — The code text to copy.
style?
string | CSSProperties

hijos: Element

Ver código fuente

CopyButtonPropsinterfaz

Propiedades

class?
string
code
string — The code text to copy.
style?
string | CSSProperties

hijos: Element

Ver código fuente

Headercomponente

                        Header(props: HeaderProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

HeaderPropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

Languagecomponente

                        Language(props: LanguageProps): Element
                      

Propiedades

class?
string
language?
string — The language label to display.
style?
string | CSSProperties

hijos: Element

Ver código fuente

LanguagePropsinterfaz

Propiedades

class?
string
language?
string — The language label to display.
style?
string | CSSProperties

hijos: Element

Ver código fuente

LineNumberscomponente

                        LineNumbers(props: LineNumbersProps): Element
                      

Propiedades

class?
string
code
string — The source code to derive line numbers from.
highlightLines?
number[] — Line numbers to highlight.
style?
string | CSSProperties

hijos: Element

Ver código fuente

LineNumbersPropsinterfaz

Propiedades

class?
string
code
string — The source code to derive line numbers from.
highlightLines?
number[] — Line numbers to highlight.
style?
string | CSSProperties

hijos: Element

Ver código fuente

Precomponente

                        Pre(props: PreProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

PrePropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

Rootcomponente

                        Root(props: RootProps): Element
                      

Propiedades

class?
string
code
string — The source code to display.
highlightLines?
number[] — Line numbers to highlight.
language?
string — Programming language identifier.
showLineNumbers?
boolean — Whether to show line numbers.
style?
string | CSSProperties

hijos: Element

Ver código fuente

RootPropsinterfaz

Propiedades

class?
string
code
string — The source code to display.
highlightLines?
number[] — Line numbers to highlight.
language?
string — Programming language identifier.
showLineNumbers?
boolean — Whether to show line numbers.
style?
string | CSSProperties

hijos: Element

Ver código fuente