Micro-library containing core for HMRC's Play UI:
Dates
provides various human-readable date formatsMoney
formats pounds and penceStrings
changes the case of phrases and hyphenates
DateTuple
maps year, month, day fields to aLocalDate
StopOnFirstFail
applies constraints in order and fails fastValidators
contains multiple small validation functions such asaddressTuple
,positiveInteger
&nonEmptySmallText
Has many standard snippets for form fields, such as: address
, dateFields
, dropdown
, fieldGroup
. Each helper
correctly adds labels, error messages and CSS classes.
Contains templates for components used across frontend applications such as: header, footer, sidebar, betaBanner.
Include the following dependency in your SBT build
resolvers += Resolver.bintrayRepo("hmrc", "releases")
libraryDependencies += "uk.gov.hmrc" %% "play-ui" % "x.x.x"
This code is open source software licensed under the Apache 2.0 License.