mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 22:32:17 +02:00
add improved play button group on list headers
This commit is contained in:
@@ -15,25 +15,26 @@ export interface DefaultPlayButtonProps extends ActionIconProps {
|
||||
size?: number | string;
|
||||
}
|
||||
|
||||
export const DefaultPlayButton = ({
|
||||
className,
|
||||
variant = 'filled',
|
||||
...props
|
||||
}: DefaultPlayButtonProps) => {
|
||||
return (
|
||||
<ActionIcon
|
||||
className={clsx(styles.textButton, className, {
|
||||
[styles.unthemed]: variant !== 'filled',
|
||||
})}
|
||||
icon="mediaPlay"
|
||||
iconProps={{
|
||||
size: 'xl',
|
||||
}}
|
||||
variant={variant}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
export const DefaultPlayButton = forwardRef<HTMLButtonElement, DefaultPlayButtonProps>(
|
||||
({ className, variant = 'filled', ...props }, ref) => {
|
||||
return (
|
||||
<ActionIcon
|
||||
ref={ref}
|
||||
className={clsx(styles.textButton, className, {
|
||||
[styles.unthemed]: variant !== 'filled',
|
||||
})}
|
||||
icon="mediaPlay"
|
||||
iconProps={{
|
||||
size: 'xl',
|
||||
}}
|
||||
variant={variant}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
DefaultPlayButton.displayName = 'DefaultPlayButton';
|
||||
|
||||
interface TextPlayButtonProps extends ButtonProps {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user