File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+ import useBaseComponent from "../internal/base-component/use-base-component" ;
4+ import { applyDisplayName } from "../internal/utils/apply-display-name" ;
5+
6+ export interface RobotProps {
7+ size : "small" | "large" ;
8+ }
9+
10+ /**
11+ * @awsuiSystem core
12+ */
13+ export default function Robot ( props : RobotProps ) {
14+ const baseComponentProps = useBaseComponent ( "Robot" , { props : { } } ) ;
15+ return (
16+ < span { ...props } { ...baseComponentProps } >
17+ 🤖
18+ </ span >
19+ ) ;
20+ }
21+
22+ applyDisplayName ( Robot , "Robot" ) ;
Original file line number Diff line number Diff line change 1+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+ import useBaseComponent from "../internal/base-component/use-base-component" ;
4+ import { applyDisplayName } from "../internal/utils/apply-display-name" ;
5+
6+ export interface StarProps {
7+ /**
8+ * @awsuiSystem core
9+ */
10+ className : string ;
11+ }
12+
13+ export default function Star ( props : StarProps ) {
14+ const baseComponentProps = useBaseComponent ( "Star" , { props : { } } ) ;
15+ return (
16+ < span { ...props } { ...baseComponentProps } >
17+ 🤖
18+ </ span >
19+ ) ;
20+ }
21+
22+ applyDisplayName ( Star , "Star" ) ;
You can’t perform that action at this time.
0 commit comments