
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@internetarchive/ia-clearable-text-input
Advanced tools
`` component to display a text input field with a clear button that appears when non-empty
<ia-clearable-text-input> web componentA lightweight web component to display a text input field with a button to clear it, visible only when the field contains text.
html`<clearable-text-input
.value=${'Input value'}
.placeholder=${'Input placeholder'}
.screenReaderLabel=${'Enter a value'}
.clearButtonScreenReaderLabel=${'Clear input field'}
@clear=${(e: CustomEvent<string>) => console.log(`Value before clear was ${e.detail}`)}
/>`
.focusOnClear=${false} to disable..ariaControls=${'controls_id'} with the DOM ID of the controls element.The following style vars are available to modify the appearance of the component:
Text input field:
/* Primary */
var(--input-padding, 0 1rem);
var(--input-border-width, 1px);
var(--input-border-style, solid);
var(--input-border-color, #ccc);
var(--input-border-radius, 2rem);
var(--input-color, #555);
var(--input-font-size, 1.7rem);
var(--input-line-height, 1.5);
var(--input-box-shadow, inset 0 1px 1px rgba(0, 0, 0, 0.075));
/* Focused */
var(--input-focused-border-color, #66afe9);
var(--input-focused-box-shadow, inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(102 175 233 / 60%));
Clear button
var(--clear-button-height, var(--input-height));
var(--clear-button-width, var(--input-height));
var(--clear-button-padding, 0);
var(--clear-button-border, 0);
var(--clear-button-background-image, <the default close-circle-dark svg>);
var(--clear-button-background-position, center);
var(--clear-button-background-size, 75%);
var(--clear-button-background-repeat, no-repeat);
var(--clear-button-background-color, transparent);
web-dev-serveryarn start
To run a local development server that serves the basic demo located in demo/index.html
To run the suite of Web Test Runner tests, run
yarn run test
To run the tests in watch mode (for <abbr title="test driven development">TDD</abbr>, for example), run
yarn run test:watch
To scan the project for linting errors, run
yarn run lint
You can lint with ESLint and Prettier individually as well
yarn run lint:eslint
yarn run lint:prettier
To automatically fix many linting errors, run
yarn run format
You can format using ESLint and Prettier individually as well
yarn run format:eslint
yarn run format:prettier
For most of the tools, the configuration is in the package.json to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
https://github.com/organizations/internetarchive/settings/installations/1268216https://app.codecov.io/gh/internetarchive/<repo-name>/settings/badgegh-pages static site generatorLet's start with creating a gh-pages branch.
This branch is where Github will look for the index.html to be hosted
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Initializing gh-pages branch"
git push origin gh-pages
Settings -> sidebar PagesSource drop-down, choose the branch where you want to host your Github Pages and the directory where it was hosted
gh-pages branch for this but you can use other branch name for thisindex.html that you want to host lives in
gh-pagesYou can update the current Github Page without pushing a commit by running:
yarn run ghpages:publish
This build script does the following, see package.json:
ghpages:publish
ghpages:prepare in the current branch you are currently working on
gh-pages branch
ghpages:prepare
ghpages:build that builds the project dependencies and generates vite build from itvite.config.ts related to thisghpages:generate
gh-pages npm package command to publish/upload the generated files from our vite build filesgh-pages branch that we setup earlierThe live demo app URL from current branch will look something like this:
https://<organization_name_or_username>.github.io/<repo_name>/<branch_name>/demo
Things that trigger automatic site generation:
a merge to main
gh-pages-main.ymlhttps://<organization_name_or_username>.github.io/<repo_name>/maina pull request against main
pr-preview.yml
https://<organization_name_or_username>.github.io/<repo_name>/pr/<pr-number>/demo
demo is another directory where the index.html lives inAnother thing to note: pushing a branch up alone will not trigger site creation.
Happy devving ^_^ 🥳 🎉
FAQs
`` component to display a text input field with a clear button that appears when non-empty
We found that @internetarchive/ia-clearable-text-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.