PillComponent
import Example from ‘../../src/@primer/gatsby-theme-doctocat/components/example’
Creates a ariadne-rounded label that resembles a medicine pill.
Arguments
Name | Type | Default | Description |
---|---|---|---|
tag |
Symbol, String |
:span |
The rendered tag name. |
color |
String |
N/A | The rgba color of the pill. |
classes |
String |
"" |
Classes and attributes |
attributes |
Hash |
{} |
Classes and attributes |
Examples
Default
<%= render(Ariadne::PillComponent.new(color: [49, 186, 115, 1.0])) { "Admin" } %>
Have questions?
Still have questions? Talk to support.