We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f72580 commit 6da5235Copy full SHA for 6da5235
src/MyButton.css
@@ -0,0 +1,3 @@
1
+.my-button {
2
+ background-color: white;
3
+}
src/MyButton.tsx
@@ -1,9 +1,11 @@
import React from 'react'
+import './MyButton.css'
4
+
5
interface MyButtonProps {
6
type?: 'primary'
7
}
8
9
export const MyButton: React.FC<MyButtonProps> = ({ type }) => {
- return <button className="my-button">my button: type {type}</button>
10
+ return <button className="my-button global-button">my button: type {type}</button>
11
src/index.css
+.global-button {
+ color: black;
src/index.ts
@@ -1 +1,3 @@
+import './index.css';
export { MyButton } from './MyButton'
0 commit comments