feat(ui): add Tooltip component and update TUI controls
This commit is contained in:
@@ -5,12 +5,25 @@ interface Props {
|
||||
options: string[];
|
||||
value?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
const { id, label, options, value = options[0], title = "" } = Astro.props;
|
||||
const {
|
||||
id,
|
||||
label,
|
||||
options,
|
||||
value = options[0],
|
||||
title = "",
|
||||
description = "",
|
||||
} = Astro.props;
|
||||
---
|
||||
|
||||
<div class="tui-segment" data-segment-id={id} title={title}>
|
||||
<div
|
||||
class="tui-segment"
|
||||
data-segment-id={id}
|
||||
data-tooltip-title={title}
|
||||
data-tooltip-desc={description}
|
||||
>
|
||||
<span class="tui-segment-label">{label}</span>
|
||||
<div class="tui-segment-options" id={id} data-value={value}>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user