Codeblock

A component for displaying highlighted code.

Usage

With clipboard

def hello_world
	puts "Hello, world!"
end

Without clipboard

def hello_world
	puts "Hello, world!"
end

Custom message

Copy the code to see the message

def hello_world
	puts "Hello, world!"
end

Installation

Using RubyUI CLI

Run the install command

rails g ruby_ui:component Codeblock

Components

ComponentBuilt usingSource
CodeblockPhlex