Skip to content

LinkableMarkProps all are optional #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged
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
10 changes: 5 additions & 5 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,27 +636,27 @@ export type LinkableMarkProps = {
/**
* if set, the mark element will be wrapped in a <a> link element
*/
href: ConstantAccessor<string>;
href?: ConstantAccessor<string>;
/**
* the relationship of the target object to the link object (e.g. "noopener")
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#rel
*/
rel: ConstantAccessor<string>;
rel?: ConstantAccessor<string>;
/**
* the link target mime type, e.g. "text/csv"
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#type
*/
type: ConstantAccessor<string>;
type?: ConstantAccessor<string>;
/**
* the target of the link, e.g. "_blank" or "_self"
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#target
*/
target: ConstantAccessor<'_self' | '_blank' | '_parent' | '_top' | string>;
target?: ConstantAccessor<'_self' | '_blank' | '_parent' | '_top' | string>;
/**
* if set to true, the link will be downloaded instead of navigating to it
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
*/
download: ConstantAccessor<boolean>;
download?: ConstantAccessor<boolean>;
// allow data-sveltekit-* attributes on the link element, e.g. data-sveltekit-reload
[key: `data-sveltekit-${string}`]: string | boolean;
};
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy