0.1.4 • Published 4 years ago

@bdt-component-library/input-tile v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

InputTile Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of checkbox and radio tiles according to style guide conventions.

API

proptyperequireddefaultexplanation
classNamestringno""Adds an optional classname to the component
childrenanyyesn/aThe inner content of the component
disabledbooleannofalseDetermines input disabled state
checkedbooleanyesfalseDetermines input checked state
hasErrorbooleannofalseDetermines if the radio is in an error state
rolestringyes""The role attribute for the input tile
autoWidthbooleannofalseSets tile's width as the tile's contents plus default padding
onClickfunction(e: event)no() => {}Event handler for onclick event on the radio input
0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago