TidalUI

Radio cards preview

Select a workspace type from descriptive cards.

pro · Forms · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/radio-cards

Import components/ui/tidal.css, components/ui/radio-cards.css. Wrap installed components in tidal-scope.

Preview

Radio cards component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/radio-cards.css";
import{TidalRadioCards}from"./components/ui/radio-cards";
export default()=><div className="tidal-scope"><TidalRadioCards label={"Demo"} onValueChange={() => {}} options={[{value:"value",label:"Demo"}]} value={"value"}/></div>;

API and props

TidalRadioCards.label (required)
string

Required label value accepted by this exported component.

TidalRadioCards.onValueChange (required)
(value: string) => void

Callback invoked when the value change interaction is proposed.

TidalRadioCards.options (required)
Array<TidalRadioOption>

Required options value accepted by this exported component.

TidalRadioCards.value (required)
string

Required value value accepted by this exported component.

TidalRadioCards.className
string | undefined

Optional class name value accepted by this exported component.

TidalRadioCards.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalRadioCards.name
string | undefined

Optional name value accepted by this exported component.

TidalRadioCards.required
boolean | undefined

Optional required value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas