Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accordion #70

Open
synuns opened this issue Jan 2, 2025 · 0 comments
Open

Accordion #70

synuns opened this issue Jan 2, 2025 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@synuns
Copy link
Member

synuns commented Jan 2, 2025

Component Function Definition

Accordion is a collection of vertically stacked interactive headings, where each heading can show or hide its associated content section.

주요 기능:

  • Single/multiple item expansion (type= 'single' | 'multiple')
  • User interaction animation support

Design Requirements

Image
  • default design
    • Accordion.Item
      • border-radius: 12px
      • padding: 20px
    • Accordion.Header
      • font-weight: 700
    • Accordion.Content
      • font-weight: 600
      • border-radius: 8px
  • animation
    • Arrow icon rotates 180 degrees when opening and closing

Component Specifications

interface

anatomy

import { Accordion } from "@sipe-team/accordion";

export default () => (
	<Accordion.Root>
		<Accordion.Item>
			<Accordion.Header>
				<Accordion.Trigger />
			</Accordion.Header>
			<Accordion.Content />
		</Accordion.Item>
	</Accordion.Root>
);

Technical Considerations

  • Support for compound components pattern with composable interface
  • Compliance with WAI-ARIA design patterns

Reference Materials

Additional Discussion Points

  • Need to add media queries for responsive design
  • Add Keyboard Interaction support
@synuns synuns self-assigned this Jan 2, 2025
@synuns synuns added the documentation Improvements or additions to documentation label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant