Sha256: 46dfb1deef6ab256189284981374899bb93649017eb2d5cd9d4f88bc46fb7006
Contents?: true
Size: 897 Bytes
Versions: 20
Compression:
Stored size: 897 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/field/input/textarea' module CCS module FrontendHelpers module GovUKFrontend # = GOV.UK Textarea # # This helper is used for generating the textarea component from the # {https://design-system.service.gov.uk/components/textarea GDS - Components - Textarea} module Textarea # Generates the HTML for the GOV.UK Textarea component # # @param (see CCS::Components::GovUK::Input::Textarea#initialize) # # @option (see CCS::Components::GovUK::Input::Textarea#initialize) # # @return (see CCS::Components::GovUK::Input::Textarea#render) def govuk_textarea(attribute, **options) Components::GovUK::Field::Input::Textarea.new(context: self, attribute: attribute, **options).render end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems