Skip to content

Commit

Permalink
feat(Forms): add Value.Upload component (#4233)
Browse files Browse the repository at this point in the history
Adds Value.Upload component

---------

Co-authored-by: Tobias Høegh <tobias@tujo.no>
  • Loading branch information
langz and tujoworker authored Nov 8, 2024
1 parent c0f1a02 commit 3adddac
Show file tree
Hide file tree
Showing 21 changed files with 1,231 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Upload,
} from '@dnb/eufemia/src'

const createMockFile = (name: string, size: number, type: string) => {
export function createMockFile(name: string, size: number, type: string) {
const file = new File([], name, { type })
Object.defineProperty(file, 'size', {
get() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: 'Upload'
description: '`Value.Upload` is a value component for displaying a list of files.'
componentType: 'feature-value'
showTabs: true
tabs:
- title: Info
key: '/info'
- title: Demos
key: '/demos'
- title: Properties
key: '/properties'
breadcrumb:
- text: Forms
href: /uilib/extensions/forms/
- text: Value
href: /uilib/extensions/forms/Value/
- text: Upload
href: /uilib/extensions/forms/Value/Upload/
---

import Info from 'Docs/uilib/extensions/forms/Value/Upload/info'
import Demos from 'Docs/uilib/extensions/forms/Value/Upload/demos'

<Info />
<Demos />
Loading

0 comments on commit 3adddac

Please sign in to comment.