diff --git a/src/components/atoms/sidebar-item.astro b/src/components/atoms/sidebar-item.astro new file mode 100644 index 0000000..58aaf17 --- /dev/null +++ b/src/components/atoms/sidebar-item.astro @@ -0,0 +1,24 @@ +--- +import type { Icon as IconName } from '@/types/icon'; + +import Icon from './icon'; + +export interface Props extends astroHTML.JSX.ButtonHTMLAttributes { + icon: IconName; + active?: boolean; +} + +const { props } = Astro; +--- + + diff --git a/src/components/organisms/sidebar.astro b/src/components/organisms/sidebar.astro index 82f23df..8df5a60 100644 --- a/src/components/organisms/sidebar.astro +++ b/src/components/organisms/sidebar.astro @@ -4,4 +4,6 @@ export interface Props extends astroHTML.JSX.HTMLAttributes {} const { props } = Astro; --- - + diff --git a/src/pages/playground/sidebar-item.astro b/src/pages/playground/sidebar-item.astro new file mode 100644 index 0000000..8beb8d4 --- /dev/null +++ b/src/pages/playground/sidebar-item.astro @@ -0,0 +1,5 @@ +--- +import SidebarItem from '@/atoms/sidebar-item.astro'; +--- + + diff --git a/src/pages/playground/sidebar.astro b/src/pages/playground/sidebar.astro new file mode 100644 index 0000000..7262797 --- /dev/null +++ b/src/pages/playground/sidebar.astro @@ -0,0 +1,9 @@ +--- +import SidebarItem from '@/atoms/sidebar-item.astro'; +import Sidebar from '@/organisms/sidebar.astro'; +--- + + + + +