Skip to content

Pinwheel Group

The PinwheelGroup component can be used to group related pinwheels.

Importing

To use the pinwheel group component, first you need to register the component inside the page. You can register the component manually by importing the register function:

ts
import { register } from "@tapsioss/web-components/pinwheel-group";

register(); // Now the pinwheel group component is ready to use!
ts
import { registerPinwheelGroup } from "@tapsioss/web-components";

registerPinwheelGroup(); // Now the pinwheel group component is ready to use!

Also you can automatically register the component by importing it with the following approach:

ts
import "@tapsioss/web-components/pinwheel-group/element";

TIP

If you want to use all the component in your app, you can call registerAll at the root of your project.

ts
import { registerAll } from "@tapsioss/web-components";

registerAll(); // All the components are now available

In the React package, you can easily add the component using the following code:

ts
import { PinwheelGroup } from "@tapsioss/react-components";

Component Usage

html
<tapsi-pinwheel-group></tapsi-pinwheel-group>
tsx
<PinwheelGroup />

Properties

NameAttribute NameDescriptionTypeDefault Value
labellabelDefines a string value that can be used to set a label
for assistive technologies.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label
string""

Slots

NameValueDescription
DEFAULT-The default slot for the content.

TIP

The value of slots are available for developer as JavaScript Variables:

ts
// Option 1
import { PinwheelGroupSlots } from "@tapsioss/web-components";

// Option 2
import { Slots } from "@tapsioss/web-components/pinwheel-group";
ts
// Option 1
import { PinwheelGroupSlots } from "@tapsioss/react-components";

// Option 2
import { Slots } from "@tapsioss/react-components/PinwheelGroup";

Created with 🧡