npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@forter/select

v1.16.0

Published

select from Forter Components

Downloads

24

Readme

fc-select

An element to select values from a list

Usage

<script>
   import '@forter/select';
</script>

<fc-select list='["-","foo","bar","zoo","loo","doo","ree","mee","faa","sol","la"]'>
</fc-select>

Examples

<!-- slot and value -->
<fc-select value="coolDog">
   <option value="coolDog">My Cool Dog Properties</option>
   <option value="coolCat">My Cool Cat Properties</option>
   <option value="elseValue">Else text</option>
</fc-select>

Properties

| Property | Attribute | Type | Default | Description | |----------------------------------|----------------------------------|-----------------------|----------|--------------------------------------------------| | activate | | any | | | | clear | | any | | | | close | | any | | | | deactivate | | any | | | | disabled | disabled | boolean | false | If the element is disabled | | dropdownignoreoverflowclipping | dropdownignoreoverflowclipping | boolean | false | If the element should ignore hiding rules such as overflow: hidden on the parent. | | extended | extended | "" \| "width: auto" | | | | flat | flat | boolean | false | Whether the input had no depth or border | | invalid | invalid | boolean | | Whether the input is invalid | | item | | any | | | | label | label | string | | | | list | list | string | | The element text for no data scenario. example: ['foo','bar'] | | loading | loading | boolean | false | If the button is loading | | onOptionHover | | any | | | | optionText | | any | | | | path | | string | | Pre-Defined size | | placeholder | placeholder | string | "Select" | | | required | required | boolean | | If the element is required | | search | | any | | | | select | | any | | | | supportSecondLineOption | supportSecondLineOption | boolean | false | If fc-select should support 2 lines of single option, instead of tooltip | | typing | | any | | | | updatePosition | | any | | | | valid | valid | boolean | | Whether the input is valid | | value | value | string | | Selected value. example: foo | | warning | warning | string | | |

Events

| Event | Description | |--------------|-------------------------------------| | activate | execute when activate a value | | clear | execute when clear list. | | close | execute when close list. | | deactivate | execute when activate a value | | search | execute when searching value | | select | execute when select value from list | | typing | execute when typing |

Slots

| Name | Description | |-------|--------------------------------------------------| | all | title at top of the list. example: <option value="coolDog">My Cool Dog Properties</option><option value="coolCat">My Cool Cat Properties</option><option value="elseValue">Else text</option> |

CSS Custom Properties

| Property | Description | |--------------------------------|---------------------------------| | --fc-select-background-color | background | | --fc-select-border-color | border-color | | --fc-select-border-radius | border-radius | | --fc-select-box-shadow | box-shadow | | --fc-select-color | color | | --fc-select-cursor | cursor | | --fc-select-disabled-color | disabled color. example: gray | | --fc-select-font-family | font-family | | --fc-select-font-size | font-size | | --fc-select-font-weight | font-weight | | --fc-select-outline | outline | | --fc-select-padding | padding |