Sha256: 14645fb6ac56b696c4fc681640c2ff2ac71176e831c6f032cb018138c7732664
Contents?: true
Size: 847 Bytes
Versions: 1
Compression:
Stored size: 847 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/field/input/textarea' module CCS module FrontendHelpers::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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccs-frontend_helpers-0.1.0.rc.2 | lib/ccs/frontend_helpers/govuk_frontend/textarea.rb |