Kbd
Last updated
Was this helpful?
The HTML <kbd> tag, implemented in Ruby.
This component can take various optional configuration params and either yield content or display what gets passed to the text configuration param.
Expects a string which will be displayed as the content inside the <kbd> tag.
This component accepts all the canonical HTML global attributes like id or class.
kbd id: 'foo', class: 'bar' do
plain 'Keyboard input' # optional content
endreturns
<kbd id="foo" class="bar">
Keyboard input
</kbd>options[:text] paramreturns
Last updated
Was this helpful?
Was this helpful?
kbd id: 'foo', class: 'bar', text: 'Keyboard input'<kbd id="foo" class="bar">
Keyboard input
</kbd>