mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 13:12:07 +00:00
Add Material UI 3 component library (#3606)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
13
src/yt-web-components.d.ts
vendored
13
src/yt-web-components.d.ts
vendored
@ -1,3 +1,5 @@
|
||||
import { type IntrinsicElements as MDUIElements } from 'mdui/jsx.en';
|
||||
|
||||
import type { Icons } from '@/types/icons';
|
||||
import type { ComponentProps } from 'solid-js';
|
||||
|
||||
@ -37,7 +39,16 @@ declare module 'solid-js' {
|
||||
key?: string;
|
||||
}
|
||||
|
||||
interface IntrinsicElements {
|
||||
type MduiIcons = Extract<
|
||||
keyof HTMLElementTagNameMap,
|
||||
`mdui-icon-${string}`
|
||||
>;
|
||||
|
||||
type MduiIconElements = {
|
||||
[k in MduiIcons]: ComponentProps<'div'>;
|
||||
};
|
||||
|
||||
interface IntrinsicElements extends MDUIElements, MduiIconElements {
|
||||
'center': ComponentProps<'div'>;
|
||||
'ytmd-trans': ComponentProps<'span'> & YtmdTransProps;
|
||||
'yt-formatted-string': ComponentProps<'span'> & YtFormattedStringProps;
|
||||
|
||||
Reference in New Issue
Block a user