1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-12 02:22:41 +03:00

frontend: start using CSS modules for components with design tokens

This commit is contained in:
Quentin Gliech
2023-08-03 18:28:43 +02:00
parent 7c2e691175
commit c8ba2a1fa3
17 changed files with 229 additions and 102 deletions

View File

@@ -12,15 +12,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import styles from "./Block.module.css";
type Props = {
children: React.ReactNode;
highlight?: boolean;
className?: string;
};
const Block: React.FC<Props> = ({ children, highlight, className }) => {
const Block: React.FC<React.PropsWithChildren<Props>> = ({
children,
highlight,
}) => {
return (
<div className={className} data-active={highlight}>
<div className={styles.block} data-active={highlight}>
{children}
</div>
);