From 14e5bee7d6051ea5225a1501a81f108119a6abe6 Mon Sep 17 00:00:00 2001 From: louistiti Date: Sun, 3 Dec 2023 22:03:53 +0800 Subject: [PATCH] feat(bridge/nodejs): add `Switch` component --- bridges/nodejs/src/sdk/aurora/index.ts | 1 + bridges/nodejs/src/sdk/aurora/switch.ts | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 bridges/nodejs/src/sdk/aurora/switch.ts diff --git a/bridges/nodejs/src/sdk/aurora/index.ts b/bridges/nodejs/src/sdk/aurora/index.ts index 328f5a7f..35e8a129 100644 --- a/bridges/nodejs/src/sdk/aurora/index.ts +++ b/bridges/nodejs/src/sdk/aurora/index.ts @@ -19,5 +19,6 @@ export * from './select' export * from './select-option' export * from './slider' export * from './status' +export * from './switch' export * from './text-input' export * from './widget-wrapper' diff --git a/bridges/nodejs/src/sdk/aurora/switch.ts b/bridges/nodejs/src/sdk/aurora/switch.ts new file mode 100644 index 00000000..ac867aa5 --- /dev/null +++ b/bridges/nodejs/src/sdk/aurora/switch.ts @@ -0,0 +1,9 @@ +import { type SwitchProps } from '@leon-ai/aurora' + +import { Widget } from '../widget' + +export class Switch extends Widget { + constructor(props: SwitchProps) { + super(props) + } +}