SelectFileButton

Type: React component

Renders a Button which triggers a native file dialog, allowing the user to select a file. Generally used as a trigger for a file upload action. The allowed file types (MIME types) can be specified using a prop.

Props

  1. icon

    (Optional)

    Type: FDS~Icon

    Default value

  2. iconAfter

    (Optional)

    Default value

  3. isDisabled

    (Optional)

    Default value

  4. label

    (Optional)

    Type: FDS~Label

    Default value

  5. mimeTypesToAccept

    (Optional)

    Type: String

    Specifies which MIME types are accepted for upload.

    For more information about MIME types, check the MDN documentation

    Default value

  6. onClick

    (Optional)

    Default value

  7. onSelect

    (Required)

    Type: Function

    A callback that is called whenever a file is selected.

    Arguments

  8. tooltipContent

    (Optional)

    Default value