Skip to content

GhostFileUploadItemRemove reference ​

Package: @ghostvue/vue. Status: experimental (stability policy).

Native button (type=button) that removes its item's file. Named by messages.removeLabel (Remove {name}) unless the consumer sets aria-label or aria-labelledby. After removal, focus moves to the next item's remove button, then the previous one, then the trigger.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

None declared.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultOptional visible text. The accessible name should begin with it (WCAG 2.5.3).

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullExposed property `element`.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-partitem-removeRemove button rendered by GhostFileUploadItemRemove.

CSS variables ​

None declared.

Accessibility ​

Role: button. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/button/.

Required ARIA attributes: aria-label.

Keyboard ​

KeyActionAutomated browser test
EnterRemoves the file and moves focus.Not reviewed
SpaceRemoves the file and moves focus.Not reviewed

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.