
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@rei/cdr-input
Advanced tools
For the most up-to-date information, see REI Cedar documentation.
| Name | Type | Default |
|---|---|---|
| id | string | auto-generated |
Requires unique ID that is mapped to the label for attribute. If this value is not set, it will be auto-generated.
| Name | Type | Default |
|---|---|---|
| type | string | 'text' |
Supports HTML5 <input> types for text, email, number, password, search, and URL. For more information, view WebAIM’s Future Web Accessibility: New input Types in HTML5.
| Name | Type | Default |
|---|---|---|
| label | string | N/A |
Sets the text value for the input label. Required for a11y compliance. Use hideLabel if the label display is not desired.
| Name | Type | Default |
|---|---|---|
| hideLabel | boolean | false |
Hides the label element and sets the input aria-label to the label value for a11y compliance.
| Name | Type | Default |
|---|---|---|
| rows | number | null |
Sets the number of rows for the input field and converts input field to textarea if the rows value is greater than 1.
| Name | Type | Default |
|---|---|---|
| disabled | boolean | false |
Sets disabled input field and label styling and restricts user input.
| Name | Type | Default |
|---|---|---|
| required | Boolean | false |
Sets the field to required and displays the text “Required” next to the input label.
| Name | Type | Default |
|---|---|---|
| size | string | 'medium' |
Sets the input field size. Possible values: { 'medium', 'large' }
| Name | Notes |
|---|---|
| info | Location for information link or icon markup to the right above the input field. |
| pre-icon | Location for icon markup to the left inside the input field. |
| post-icon | Location for icon markup to the right inside the input field. |
| helper-text | Location for helper or information text to the left below the input field. |
| Name | Arguments | Notes |
|---|---|---|
| change | newValue, event | Event is emitted on input losing focus (onBlur) if the value has changed |
Resources are available within the CdrInput package:
@rei/cdr-inputcdr-input.cssTo incorporate the required assets for a component, use the following steps:
Install the CdrInput package using npm in your terminal:
Terminal
npm i -S @rei/cdr-input
main.js
// import your required CSS.
import "@rei/cdr-input/dist/cdr-input.css";
local.vue
<template>
...
<cdr-input
v-model=”inputModel”
label=”Input Label Text”
placeholder=”Input Placeholder Text”
/>
...
</template>
<script>
import { CdrInput } from '@rei/cdr-input';
export default {
...
components: {
CdrInput
},
data() {
inputModel: ‘Default Value’
}
}
</script>
The CdrInput component requires v-model to bind the input value to your data model. You can also use helper-text to display additional information below the input.
<cdr-input
class="demo-input"
v-model="inputWithSlots"
id="slots-demo"
label="Billing address ZIP code">
<template slot="helper-text">
International customers, if no postal code, enter “NA”
</template>
</cdr-input>
aria-label will automatically be added on compilation based upon what is provided in label when label is hidden using hide-label.
<cdr-input
class="demo-input"
v-model="ariaModel"
id="aria-demo"
label=”First Name"
hide-label>
</cdr-input>
This will result in the following HTML:
<div class="cdr-input-wrap">
<input
id="aria-demo"
type="text"
class="cdr-input"
aria-label="First Name">
</div>
Input inherits the placeholder attribute for the placeholder text. You can also use the post-icon slot for adding and icon.
<cdr-input
class="demo-input"
v-model="inputWithSlots"
placeholder="mm/dd/yyyy"
id="slots-demo"
label="Event Date">
<template slot="post-icon">
<icon-calendar />
</template>
</cdr-input>
FAQs
REI Cedar Style Framework - Vue Component for Input
We found that @rei/cdr-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.