inlinecode

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package inlinecode provides the Inline Code expansion of shadcn/ui: a code chip in the prose, as a command is written inside a sentence, with a muted face and the monospace font.

inlinecode.InlineCode(c, inlinecode.Props{Text: "go get github.com/smallnest/uix/components/button"})

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InlineCode

func InlineCode(c *ui.Context, p Props) ui.Element

InlineCode draws the code chip and returns it, so a view can chain more calls on it.

Types

type Props

type Props struct {
	// Text is the code, as written in the sentence around it.
	Text string
}

Props describes the code chip to draw.

Jump to

Keyboard shortcuts

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