The Asset
component should wrap a displayed asset (file).
This component extends React.ComponentPropsWithoutRef<"div">
, meaning it accepts all native div
element props.
asset
For data handling purposes, an asset must be passed in as a prop.
Type: Asset & { isLoading: boolean, isSelected: boolean }
Required
asChild
Type: boolean
Asset
must be used inside an AssetList
or AssetDetails
component, respectively.
Use the ResourceName
component to display the asset's name, instead of accessing {asset.name}
directly. See ResourceName.