Add Textbox Component #45
Merged
j285he
merged 3 commits from j285he-textbox-component
into main
6 months ago
@ -0,0 +1,7 @@ |
||||
.textbox { |
||||
width: 80%; |
||||
padding: calc(80rem / 16); |
||||
background-color: var(--secondary-background); |
||||
border-radius: calc(20rem / 16); |
||||
margin: 0 auto; |
||||
} |
@ -0,0 +1,11 @@ |
||||
import React, { ReactNode } from "react"; |
||||
|
||||
import styles from "./CenterWrapper.module.css"; |
||||
|
||||
export interface TextboxProps { |
||||
children: ReactNode; |
||||
} |
||||
|
||||
export function CenterWrapper({ children }: TextboxProps) { |
||||
return <section className={styles.textbox}>{children}</section>; |
||||
} |
Loading…
Reference in new issue