We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e79233 + 311b1ac commit 006ec94Copy full SHA for 006ec94
2 files changed
lib/octicons_react/src/index.d.ts
@@ -6,6 +6,7 @@ type Size = 'small' | 'medium' | 'large'
6
export interface OcticonProps {
7
ariaLabel?: string
8
children?: React.ReactElement<any>
9
+ className?: string
10
height?: number
11
icon: Icon
12
size?: number | Size
lib/octicons_react/ts-tests/index.tsx
@@ -49,6 +49,12 @@ function VerticalAlign() {
49
)
50
}
51
52
+function WithClassName() {
53
+ return (
54
+ <Octicon icon={Repo} className="awesomeClassName" />
55
+ )
56
+}
57
+
58
const CirclesIcon = createIcon(
59
() => {
60
return (
0 commit comments