3.0.3 • Published 1 year ago

yunseong-bottom-sheet v3.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Yunseong-Bottom-Sheet

yunseong's bottom sheet for react-payments mission

Usage

bottom sheet need just two props.

isOpen:boolean: open status of bottom sheet. if bottom sheet open, this state will be true

onToggleOpen:() => void: method to manage open bottom sheet.

and you can specific modal content used by children props.

let's see example.]

const CardNameBottomSheet = ({
  isOpen,
  onToggleOpen,
  setCardCompany,
}: CardNameBottomSheetProps) => {
  const onCardSelectButtonClick = (cardCompany: CardCompany) => {
    onToggleOpen();
    setCardCompany(cardCompany);
  };

  return (
    <BottomSheet isOpen={isOpen} onToggleOpen={onToggleOpen}>
      {/* specific modal content */}
    </BottomSheet>
  );
};

export default CardNameBottomSheet;
3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago