651 B29 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8import * as stylex from '@stylexjs/stylex';
9import {stylexPropsWithClassName} from './utils';
10
11const styles = stylex.create({
12 subtle: {
13 fontSize: '90%',
14 opacity: 0.9,
15 },
16});
17
18export function Subtle({
19 children,
20 className,
21 ...props
22}: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) {
23 return (
24 <span {...stylexPropsWithClassName(styles.subtle, className)} {...props}>
25 {children}
26 </span>
27 );
28}
29