Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@lendi-ui/dropdown
Advanced tools
Readme
A component.
yarn add @lendi-ui/dropdown
import { NativeSelect, Select } from '@lendi-ui/dropdown';
(items = [
{
value: '1',
label: '5 years',
},
{
value: '2',
label: '10 years',
},
{
value: '3',
label: '15 years',
},
{
value: '4',
label: '20 years',
},
{
value: '5',
label: '25 years',
},
]),
<NativeSelect
size={{mobile:'sm', tablet:'md', desktop:'lg'}}
items={this.state.items}
isFullWidth={true}
value={this.state.value}
onChange={(value) => {this.setState({value})
}}
/>
<Select
size="sm"
options={items}
placeholder="Size SM"
hideSelectedOptions={false}
isAutoFocus
/>
***Dropdown also support default select props like autoFocus, disabled, onFocus, onChange, name and all AriaAttributes.
<PropTable>
<PropTable.Entry name="className" defaultValue=""type="string" description="The custom style for Dropdown."/>
<PropTable.Entry name="isDisabled" type={'"true | false"'} defaultValue="false" description="Whether the dropdown is disabled."/>
<PropTable.Entry name="isError" type={'"true | false"'} defaultValue="false" description="Whether the dropdown is not selected."/>
<PropTable.Entry name="isFullWidth" type={'"true | false"'} defaultValue="true" description="the dropdown is intended to use the full width of the container"/>
<PropTable.Entry name="isLoading" type={'"true | false"'} defaultValue="false" description="Whether the dropdown icon is Spinner or ChevronDown."/>
<PropTable.Entry name="items" required type="[{value: string, label: string}]" description="An object array with 'value' and 'label' that display in this component"/>
<PropTable.Entry name="size" type={'"lg" | "md" | "sm"'} defaultValue="md" description="The inline-dropdown size"/>
</PropTable>
FAQs
A <Dropdown> component.
The npm package @lendi-ui/dropdown receives a total of 165 weekly downloads. As such, @lendi-ui/dropdown popularity was classified as not popular.
We found that @lendi-ui/dropdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 47 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.