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