diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-06-19 23:35:46 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-06-19 23:35:46 +0900 |
| commit | da4e7150af05123ff258feaddc980e5db6c03474 (patch) | |
| tree | ac8f92e4367420e42e079fceec63fbb7cd82460e /src/components/MessageBubble.astro | |
| parent | 9294d4bab547a07eb17ed0ae28058462b7beaeca (diff) | |
「」を含む太字を <strong> タグに修正
Diffstat (limited to 'src/components/MessageBubble.astro')
| -rw-r--r-- | src/components/MessageBubble.astro | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/MessageBubble.astro b/src/components/MessageBubble.astro new file mode 100644 index 0000000..74f9927 --- /dev/null +++ b/src/components/MessageBubble.astro @@ -0,0 +1,17 @@ +--- +export interface Props { + speaker: string; + align?: 'left' | 'right'; + id?: string; + className?: string; +} +const { speaker, align = 'right', id, className = '' } = Astro.props; +--- +<div + class:list={['bln', align === 'left' ? 'bleft' : 'bright', className]} + data-speaker={speaker} + {id ? `id=${id}` : ''} +> + <span class="tail-outer"></span> + <slot /> +</div> |
