Ariadne

FlexComponent

import Example from ‘../../src/@primer/gatsby-theme-doctocat/components/example’

Adds a flex container to the page.

Arguments

Name Type Default Description
tag Symbol, String :div The rendered tag name.
type Symbol N/A One of :column, :column_reverse, :row, or :row_reverse.
classes String "" Classes and attributes
attributes Hash {} Classes and attributes

Examples

Default


<%= render(Ariadne::FlexComponent.new(type: :column)) { "Example" } %>

Have questions?

Still have questions? Talk to support.