| 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 | |
| 8 | import * as stylex from '@stylexjs/stylex'; |
| 9 | import {stylexPropsWithClassName} from './utils'; |
| 10 | |
| 11 | const styles = stylex.create({ |
| 12 | subtle: { |
| 13 | fontSize: '90%', |
| 14 | opacity: 0.9, |
| 15 | }, |
| 16 | }); |
| 17 | |
| 18 | export 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 | |