Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/dialogs/directory-picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description: 'Let users pick a folder with the native directory dialog'

import { Platforms } from '/snippets/platforms.jsx'
import DialogResult from '/snippets/dialog-result.mdx'
import { FileKitDemo } from '/snippets/demo-embed.jsx'

<Platforms scope="dialogs" supported="android ios macos jvm windows" partial={{ linux: 'Needs the XDG Desktop Portal', web: 'Read-only tree; an empty folder returns null' }} anchor="filekit-dialogs" />

Expand Down Expand Up @@ -35,6 +36,12 @@ val directory: PlatformFile? = FileKit.openDirectoryPicker()

<DialogResult />

## Try it

This is the FileKit sample running in your browser. Pick a folder to browse its contents as a tree, then open a file to inspect its metadata.

<FileKitDemo demo="directory-picker" title="Directory picker" />

## Options

In Compose, pass these options to `rememberDirectoryPickerLauncher`. `launch()` takes no arguments.
Expand Down
7 changes: 7 additions & 0 deletions docs/dialogs/gallery-picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description: 'Let users pick photos and videos with the native gallery on Androi

import { Platforms } from '/snippets/platforms.jsx'
import DialogResult from '/snippets/dialog-result.mdx'
import { FileKitDemo } from '/snippets/demo-embed.jsx'

<Platforms scope="dialogs" supported="android ios" partial={{ macos: 'File dialog filtered by extension', jvm: 'File dialog filtered by extension', linux: 'File dialog filtered by extension', windows: 'File dialog filtered by extension', web: 'File input filtered by image/* and video/*' }} anchor="filekit-dialogs" />

Expand Down Expand Up @@ -38,6 +39,12 @@ val image: PlatformFile? = FileKit.openFilePicker(type = FileKitType.Image)

Every [file picker option](/dialogs/file-picker#options) applies, including the state-tracking modes.

## Try it

This is the FileKit sample running in your browser. Choose images, videos, or both, switch the selection mode, then open a file to inspect its metadata. In a browser the picker is a file input filtered to media files.

<FileKitDemo demo="gallery-picker" title="Gallery picker" />

## What users see

| Platform | Dialog |
Expand Down
22 changes: 16 additions & 6 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"name": "FileKit",
"description": "FileKit is a Kotlin Multiplatform library to pick, save, read, and write files on Android, iOS, macOS, JVM desktop, Linux, and Windows with native dialogs, plus browser file pickers and downloads on JS and Wasm.",
"colors": {
"primary": "#0D9373",
"light": "#07C983",
"dark": "#0D9373"
"primary": "#1A7F4B",
"light": "#E3C266",
"dark": "#1A7F4B"
},
"favicon": "/favicon.svg",
"favicon": "/brand/favicon.svg",
"navigation": {
"groups": [
{
Expand Down Expand Up @@ -80,8 +80,18 @@
]
},
"logo": {
"light": "/logo/light-0.10.2.svg",
"dark": "/logo/dark-0.10.2.svg"
"light": "/brand/logo-light.svg",
"dark": "/brand/logo-dark.svg"
},
"seo": {
"metatags": {
"og:image": "https://filekit.mintlify.app/brand/og.jpg",
"og:image:width": "1200",
"og:image:height": "630",
"og:image:alt": "FileKit: file operations, pickers, and dialogs for Kotlin and Compose Multiplatform",
"twitter:card": "summary_large_image",
"twitter:image": "https://filekit.mintlify.app/brand/og.jpg"
}
},
"navbar": {
"primary": {
Expand Down
49 changes: 0 additions & 49 deletions docs/favicon.svg

This file was deleted.

Binary file removed docs/images/hero-10.png
Binary file not shown.
Binary file removed docs/images/hero-13.png
Binary file not shown.
Loading
Loading