addons/isl/src/icons/IconStack.tsxblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318import './IconStack.css';
b69ab319
b69ab3110/**
b69ab3111 * Render two Icons on top of each other, the top one half-sized in the bottom right corner.
b69ab3112 */
b69ab3113export function IconStack({
b69ab3114 children,
b69ab3115 ...rest
b69ab3116}: {children: [React.ReactNode, React.ReactNode]} & React.DetailedHTMLProps<
b69ab3117 React.HTMLAttributes<HTMLDivElement>,
b69ab3118 HTMLDivElement
b69ab3119>) {
b69ab3120 return (
b69ab3121 <div className="icon-stack" {...rest}>
b69ab3122 {children}
b69ab3123 </div>
b69ab3124 );
b69ab3125}