Skip to content

Commit d6332e7

Browse files
committed
refactor(select): export RichContentOption
1 parent 7fad490 commit d6332e7

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

core/src/components/select/select-interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface SelectOverlayOption extends Omit<SelectPopoverOption, 'text'>,
3030
text?: string | HTMLElement;
3131
}
3232

33-
interface RichContentOption {
33+
export interface RichContentOption {
3434
/** Content to display at the start of the option. */
3535
startContent?: HTMLElement;
3636
/** Content to display at the end of the option. */

core/src/utils/select-option-render.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
import { h } from '@stencil/core';
22

3+
import type { RichContentOption as RichContentOpt } from '../components/select/select-interface';
4+
35
import { sanitizeDOMString } from './sanitization';
46

5-
interface RichContentOption {
7+
interface RichContentOption extends RichContentOpt {
68
/** Unique identifier for stable virtual DOM keys across re-renders. */
79
id: string;
810
/** The main label for the option as a string or an HTMLElement. */
911
label?: string | HTMLElement;
10-
/** Content to display at the start of the option. */
11-
startContent?: HTMLElement;
12-
/** Content to display at the end of the option. */
13-
endContent?: HTMLElement;
14-
/** A description for the option. */
15-
description?: string;
1612
}
1713

1814
/**

0 commit comments

Comments
 (0)