Datalist

The HTML <datalist> tag, implemented in Ruby.

Parameters

This component accepts all the canonical HTML global attributes like id or class.

Examples

Example 1 - Basic usage

datalist id: 'foo', class: 'bar' do
  plain 'Example Text'
end

returns

<datalist id="foo" class="bar">Example Text</datalist>

Last updated