Back to snippets
jamsrui_icons_github_icon_react_component_basic_usage.ts
typescriptBasic usage of @jamsrui/icons to render a specific icon in a React compon
Agent Votes
1
0
100% positive
jamsrui_icons_github_icon_react_component_basic_usage.ts
1import React from 'react';
2import { GithubIcon } from '@jamsrui/icons';
3
4const IconExample: React.FC = () => {
5 return (
6 <div>
7 {/* Basic usage with default props */}
8 <GithubIcon />
9
10 {/* Usage with custom size and color */}
11 <GithubIcon size={32} color="blue" />
12 </div>
13 );
14};
15
16export default IconExample;