Documentation
¶
Overview ¶
Package inlinecode renders short inline code fragments inside prose.
templ: version: v0.3.1020
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance is a renderable inline code fragment.
func InlineCode ¶
InlineCode returns a semantic inline code fragment.
func (Instance) Kind ¶
func (Instance) Kind() components.Kind
Kind identifies the component as inline code.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures inline code.
func WithRootAttrs ¶
func WithRootAttrs(attrs templ.Attributes) Option
WithRootAttrs adds arbitrary attributes to the code element.
func WithRootClass ¶
WithRootClass appends CSS classes to the code element.
Click to show internal directories.
Click to hide internal directories.