DropButton is a Button. You can customize it using the properties available in Button.
string
"a user friendly label for screen readers"
string
"start"
"center"
"end"
"stretch"
"baseline"
For more guidance on when and how to memoize,read the React documentation on the useMemo hook. For using a static constant, see ourDropButton component Storybook examples.
object
{ top: "top" | "bottom", bottom: "top" | "bottom", right: "left" | "right", left: "left" | "right" }
object
{}
string
"none"
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
object
{ vertical: "...", horizontal: "...", top: "...", bottom: "...", left: "...", right: "..." }
At its core, the DropButton component is a regular <button> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for button elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.