26 lines
638 B
TypeScript
26 lines
638 B
TypeScript
import styles from "./lai.module.css"
|
|
|
|
export default function LabelAndIcon({ children }: React.PropsWithChildren) {
|
|
return (
|
|
<div className={styles.container}>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
function Icon({ children }: React.PropsWithChildren) {
|
|
return <span className={styles.icon}>{children}</span>
|
|
}
|
|
|
|
function Label({ children }: React.PropsWithChildren) {
|
|
return <span className={styles.label}>{children}</span>
|
|
}
|
|
|
|
function Content({ children }: React.PropsWithChildren) {
|
|
return <span className={styles.content}>{children}</span>
|
|
}
|
|
|
|
LabelAndIcon.Icon = Icon
|
|
LabelAndIcon.Label = Label
|
|
LabelAndIcon.Content = Content
|