Components / Modals and sheets
Share sheet
A copyable link, who can open it, and people already invited, in one small dialog.
Share "Kitchen reframe"
- MRMara ReyesOwner
- DWDana WhitfieldCan edit
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-modal-share">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-sh">
<h3 id="ukc-sh">Share "Kitchen reframe"</h3>
<div class="link"><input type="text" value="halden.app/j/4417-kr" readonly aria-label="Share link"><button type="button"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="8" width="12" height="12" rx="1"/><path d="M16 8V4H4v12h4"/></svg> Copy</button></div>
<label class="who">Anyone with the link <select aria-label="Link access"><option>can view</option><option>can comment</option></select></label>
<ul><li><span class="av">MR</span><span>Mara Reyes</span><span class="r">Owner</span></li><li><span class="av b">DW</span><span>Dana Whitfield</span><span class="r">Can edit</span></li></ul>
</div></div>
</div>
.ukc-modal-share { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-modal-share *, .ukc-modal-share *::before, .ukc-modal-share *::after { box-sizing: border-box; }
.ukc-modal-share :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-modal-share :where(ul, ol) { padding: 0; list-style: none; }
.ukc-modal-share :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-modal-share :where(a) { color: inherit; }
.ukc-modal-share svg { flex: none; }
.ukc-modal-share .bd { display: grid; place-items: center; padding: 28px 16px; border-radius: var(--uk-radius-lg); background: color-mix(in srgb, color-mix(in srgb, var(--uk-ink) 20%, black) 50%, transparent); }
.ukc-modal-share .dlg { width: 100%; max-width: 440px; background: var(--uk-paper); border-radius: var(--uk-radius-lg); box-shadow: 0 20px 50px color-mix(in srgb, color-mix(in srgb, var(--uk-ink) 20%, black) 35%, transparent); }
.ukc-modal-share .dlg { padding: 22px; display: grid; gap: 14px; }
.ukc-modal-share h3 { font-size: 18px; }
.ukc-modal-share .link { display: flex; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); overflow: hidden; }
.ukc-modal-share .link input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 0; background: var(--uk-surface); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 13px; }
.ukc-modal-share .link button { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-left: 1px solid var(--uk-line); background: var(--uk-paper); cursor: pointer; font-weight: 600; }
.ukc-modal-share .who { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.ukc-modal-share select { border: 0; background: none; color: var(--uk-accent); font-weight: 600; }
.ukc-modal-share ul { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--uk-line); }
.ukc-modal-share li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.ukc-modal-share .av { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--uk-accent); color: var(--uk-accent-ink); font-size: 10px; font-weight: 700; }
.ukc-modal-share .av.b { background: var(--uk-highlight); color: color-mix(in srgb, var(--uk-ink) 15%, black); }
.ukc-modal-share .r { color: var(--uk-muted); font-size: 13px; }
More modals and sheets
All 25Step 2 of 3
How do clients pay you?
North wall, before drywall3 / 48 Choose your location
$2,140 received
Alder Street Homes paid invoice 1042 by bank transfer. It reaches your account within two working days.