addons/components/Subtle.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 * as stylex from '@stylexjs/stylex';
b69ab319import {stylexPropsWithClassName} from './utils';
b69ab3110
b69ab3111const styles = stylex.create({
b69ab3112 subtle: {
b69ab3113 fontSize: '90%',
b69ab3114 opacity: 0.9,
b69ab3115 },
b69ab3116});
b69ab3117
b69ab3118export function Subtle({
b69ab3119 children,
b69ab3120 className,
b69ab3121 ...props
b69ab3122}: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) {
b69ab3123 return (
b69ab3124 <span {...stylexPropsWithClassName(styles.subtle, className)} {...props}>
b69ab3125 {children}
b69ab3126 </span>
b69ab3127 );
b69ab3128}