codeblock

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionProps

type ActionProps struct {
	// Children - Content rendered inside the code block action. Optional.
	Children any //  // React.ReactNode
	// ClassName - Additional classes passed to the code block action. Optional.
	ClassName string
}

type CodeProps

type CodeProps struct {
	// Children - Code rendered inside the code block. Optional.
	Children any //  // React.ReactNode
	// ClassName - Additional classes passed to the code block pre wrapper. Optional.
	ClassName string
	// CodeClassName - Additional classes passed to the code block code. Optional.
	CodeClassName string
}

type Props

type Props struct {
	// Children - Content rendered inside the code block. Optional.
	Children any //  // React.ReactNode
	// ClassName - Additional classes passed to the code block wrapper. Optional.
	ClassName string
	// Actions - Actions in the code block header. Should be wrapped with CodeBlockAction. Optional.
	Actions any //  // React.ReactNode
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL