The components included in this library share some common options,
These arguments work consistently across all the components and slots.
Every component, slot and helper has its own classes to make it look and work like
a GOV.UK Design System component. We can add extra classes to customise for
our projects by using the
classes keyword argument. The built-in and provided
classes are combined and all will be present in the rendered component.
Classes can be provided in an array or a space-separated string.
HTML attributes work in a similar fashion to classes but the
argument must be a hash.
You can use the Rails convention
data attributes and they’ll be set properly.