🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@sikt/sds-input-file

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sikt/sds-input-file

```sh npm i -s @sikt/sds-{form,input-file} ```

latest
npmnpm
Version
1.3.1
Version published
Maintainers
3
Created
Source

@sikt/sds-input-file

Consume

npm i -s @sikt/sds-{form,input-file}

React

import { InputFile, FileList, FileListItem } from "@sikt/sds-input-file";
import "@sikt/sds-form/dist/index.css";
import "@sikt/sds-input-file/dist/index.css";

<InputFile
  label="Upload documentation"
  aria-label="Upload documentation"
  accept=".doc,.docx"
  onChange={changeHandler}
>
  <FileList figCaption="Attatchments">
    files.map((file) => {
      <FileListItem
        fileSize={file.size}
        actionProps{{ label: `Remove ${file.name}`, onClick: handleFileClick }}
      >
        {file.name}
      </FileListItem>
    })
  </FileList>
</InputFile>

Caveats

  • "aria-label": Should be the text content of the label prop. This is used to override React Aria DropZone that sets it's own aria-label.
  • accept: Does not currently support wildcard (for example "*" or "image/*")

Stylesheets & custom markup

Import stylesheet:

@import url("@sikt/sds-form");
@import url("@sikt/sds-input-file");

Create custom markup:

<!-- N/A -->

FAQs

Package last updated on 09 Oct 2025

Did you know?

Socket

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.

Install

Related posts